<!DOCTYPE html>
<html class=""><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="../js/jquery.min_wev8.js"></script>

    <script language="javascript" type="text/javascript" src="../js/swfobject_wev8.js"></script>
    <!-- js 整合到 init_wev8.js -->
    <script type="text/javascript" src="../js/jquery.table_wev8.js"></script>
    <script language="javascript" type="text/javascript" src="../js/init_wev8.js"></script>
    <script language="javascript" src="../js/wbusb_wev8.js"></script>
    <script type="text/javascript" src="../js/jquery.client_wev8.js"></script>
    <script type="text/javascript" src="../js/jquery.jNice_wev8.js"></script>
    <script type="text/javascript" src="../js/jquery.autocomplete_wev8.js"></script>
    <script type="text/javascript" src="../js/browser_wev8.js"></script>
    <script language="javascript" src="../js/zDialog_wev8.js"></script>
    <script type="text/javascript" src="../js/hoverBtn_wev8.js"></script>
    <script type="text/javascript" src="../js/weaver_lang_7_wev8.js"></script>

    <!-- init.css, 所有css文件都在此文件中引入 -->
    <link rel="stylesheet" href="../css/init_wev8.css" type="text/css">
    <link href="../css/WdatePicker_wev8.css" rel="stylesheet" type="text/css"><style type="text/css">.fancybox-margin{margin-right:0px;}</style></head><body scroll="auto" style="overflow-x:hidden !important; overflow-y: auto !important">

<link href="../css/jquery_dialog_wev8.css" type="text/css" rel="STYLESHEET">
<script type="text/javascript" src="../js/jquery.min_wev8.js"></script>
<script type="text/javascript" language="javascript" src="../js/jquery_dialog_wev8.js"></script>
<link type="text/css" rel="stylesheet" href="../css/wui_wev8.css">

<!-- 字体设置，win7、vista系统使用雅黑字体,其他系统使用宋体 Start -->
<!--
添加至init_wev8.css
<link type='text/css' rel='stylesheet'  href='/wui/common/css/w7OVFont_wev8.css' id="FONT2SYSTEMF">
 -->
<script language="javascript">
    /*
if (jQuery.client.version< 6) {
	document.getElementById('FONT2SYSTEMF').href = "/wui/common/css/notW7AVFont_wev8.css";
}
*/
</script>
<!-- 字体设置，win7、vista系统使用雅黑字体,其他系统使用宋体 End -->

<!-- 页面切换效果Start -->

<!-- 页面切换效果End -->


<script language="javascript">

    //------------------------------
    // the folder of current skins
    //------------------------------
    //当前使用的主题
    var GLOBAL_CURRENT_THEME = "ecology8";
    //当前主题使用的皮肤
    var GLOBAL_SKINS_FOLDER = "default";
</script>

<!--For wuiForm-->
<script type="text/javascript" src="../js/jquery.wuiform_wev8.js"></script>
<script language="javascript">
    jQuery(document).ready(function(){
        wuiform.init();
    });
</script>
<script type="text/javascript" src="../js/weaver-lang-cn-gbk_wev8.js"></script>
<title>高管门户</title>
<!-- 引入CSS -->
<script language="javascript" src="../js/zDialog_wev8.js"></script>
<script language="javascript" src="../js/zDrag_wev8.js"></script>
<link rel="stylesheet" href="../css/e8_zDialog_btn_wev8.css" type="text/css">
<link rel="stylesheet" href="../css/e8tabs_wev8.css" type="text/css">
<script language="javascript" src="../js/jquery.tabs.extend_wev8.js"></script>
<script type="text/javascript" src="../js/jquery.overlabel_wev8.js"></script>
<link type="text/css" href="../css/e8tabs1_wev8.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../css/perfect-scrollbar_wev8.css">
<script type="text/javascript" src="../js/perfect-scrollbar_wev8.js"></script>
<script type="text/javascript" src="../js/jquery.mousewheel_wev8.js"></script>

<!-- 引入JavaScript -->
<script language="javascript" src="../js/jquery.weavertabs_wev8.js"></script>
<script language="javascript" src="../js/jquery.filetree_wev8.js"></script>
<script language="javascript" src="../js/jquery.corner_wev8.js"></script>
<script language="javascript" src="../js/jquery.cycle.all_wev8.js"></script>
<script language="javascript" src="../js/drag_wev8.js"></script>
<script language="javascript" src="../js/xmlextras_wev8.js"></script>
<script language="javascript" src="../js/swfobject_wev8.js"></script>
<script language="javascript" src="../js/menuh_wev8.js"></script>
<script language="javascript" src="../js/menuv_wev8.js"></script>
<script language="javascript" src="../js/ui.core_wev8.js"></script>
<script language="javascript" src="../js/ui.dialog_wev8.js"></script>
<script language="javascript" src="../js/highslide-with-gallery_wev8.js"></script>
<script language="javascript" src="../js/jquery.tooltip_wev8.js"></script>
<script language="javascript" src="../js/jquery.bgiframe.pack_wev8.js"></script>
<script language="javascript" src="../js/shadowbox.js"></script>
<script language="javascript" src="../js/jquery.showLoading.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script language="javascript" src="../js/jcarousellite.js"></script>
<script language="javascript" src="../js/jquery.fancybox.js"></script>
<script language="javascript" src=""></script>

<link href="../css/Weaver_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/page_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/weavertabs_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/menuh_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/menuv_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/ui.dialog_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/ui.theme_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/ui.core_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/highslide_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/etooltip_wev8.css" type="text/css" rel="stylesheet">
<link href="../css/task.css" type="text/css" rel="stylesheet">
<link href="../css/showLoading.css" type="text/css" rel="stylesheet">
<link href="../css/shadowbox.css" type="text/css" rel="stylesheet">
<link href="../css/default.css" type="text/css" rel="stylesheet">
<link href="../css/jquery.fancybox.css" type="text/css" rel="stylesheet">
<style type="text/css">
    body{
        background:#ffffff;
    }

    #Container{
        width:99%;
        margin-left:10px;
    }

    .item{
        margin-top:10px;
    }
    .group{
        margin-right:10px;
    }

    #__content__ table{margin-bottom:10px;border-collapse:collapse;display:table;}
    #__content__ .selectTdClass{background-color:#edf5fa !important}
    #__content__ table.noBorderTable td,
    #__content__ table.noBorderTable th,
    #__content__ table.noBorderTable caption{border:1px dashed #ddd !important}

    #__content__ td,#__content__ th{padding: 5px 10px;border: 0px;}
    #__content__ caption{border:1px dashed #DDD;border-bottom:0;padding:3px;text-align:center;}
    #__content__ th{border-top:1px solid #BBB;background-color:#F7F7F7;}
    #__content__ table tr.firstRow th{border-top-width:2px;}
    #__content__ td p{margin:0;padding:0;}
    #__content__ pre{margin:.5em 0;padding:.4em .6em;border-radius:8px;background:#f8f8f8;}
    #__content__ .view{padding:0;word-wrap:break-word;cursor:text;height:90%;}body{margin:8px;font-family:sans-serif;font-size:12px;}p{margin:5px 0;}

    .addwf .tab_menu {
        height:30px!important;
        line-height: 30px!important;
        margin-top：10px;
    }

    .addwf .tab_menu li {
        height:30px!important;
        line-height: 30px!important;
    }
    .addwf .addwfDrop li{

        margin-left:10px;
        margin-right:10px;
        border-bottom: 1px solid rgb(226, 227, 228);
    }

    .addwf .addwfDrop li{
        margin-left:10px;
        margin-right:10px;
        border-bottom: 1px solid rgb(226, 227, 228);
        cursor:pointer;
        white-space: nowrap;
    }
    .settingtabcurrent{
        color: #1264B5 !important;
    }
    .weavertabs-content DIV{
        display:inline;
    }
    .cntactbox .tab_menu li {
        height:30px!important;
        line-height: 30px!important;
    }

    .cntactbox .magic-line{
        display: none;
    }

    .item .magic-line{
        display: none;
    }
    .settingtabcurrent{
        color: #1264B5 !important;
    }

    .item a{
        text-decoration: none!important;
    }
    .header{
        background-position:left center;
    }
    .ehoverBg{
        background:#E2F1FC;
    }
    #reldiv #Container{

        margin-left:5px;

    }
    #container_Table{
        border-collapse: collapse;
        height: 100%;
    }
    #container_Table td
    {
        vertical-align:top;
    }
    .item .title{
        padding-bottom:5px;
    }

    #spanELib>div{
        border:none !important;
    }


    .toolbar ul li a{
        overflow: inherit!important;
    }

    .wfremindimg{
        vertical-align: middle;
        margin-top: -3px;
        padding-left: 6px;
        cursor: pointer;
    }

    .picturenexthp{
        cursor: pointer;
    }

    .picturebackhp{
        cursor: pointer;
    }

    .elementdatatable{
        margin-top: 3px;
        border-collapse: collapse;
    }

    .elementdatatable tr{
        height : 20px;
    }
    .elementdatatable td img{
        vertical-align: middle;
    }

    .elementdatatable td{
        vertical-align: middle;
        padding-top: 2px;
        padding-bottom: 2px;
        line-height: 20px;
        font-size: 12px;
    }


    .colorspan{display:inline-block;*display:inline;width:15px !important;height:15px !important;overflow:hidden;cursor:pointer;margin-top:5px;}
    .colorul{width:110px;height:55px;list-style-type:none !important;margin:0px;padding:5px;overflow:hidden;}
    .colorul li{width:25px;height:25px;white-space:nowrap;margin-top:2px;margin-left:2px;padding:0px;float:left;cursor:pointer;}



    .picturebackhp
    {
        width: 18px;
        height: 32px;
        float:left;
        background: transparent url(../images/scroll_left_wev8.gif) no-repeat 0 0;
    }
    .picturenexthp
    {
        width: 18px;
        height: 32px;
        float:left;
        background: transparent url(../images/scroll_right_wev8.gif) no-repeat 0 0;
    }

    #PortalCenter{
        width: 100%;
        height: 240px;
        table-layout: fixed;

    }

    .module{
        width: 100%;
        height: 100%;
        position: relative;
        cursor: pointer;
    }

    .workflow{
        background-color:#33a3ff;
        background-image: url("../images/workflow_wev8.png");
        background-position: center center;
        background-repeat: no-repeat;
    }

    .project{
        background-color:#cb61fe;
        background-image: url("../images/project_wev8.png");
        background-position: center center;
        background-repeat: no-repeat;
    }

    .capital{
        background-color:#ffd200;
        background-image: url("../images/capital_wev8.png");
        background-position: center center;
        background-repeat: no-repeat;
    }

    .cowork{
        background-color:#fd9000;
        background-image: url("../images/cowork_wev8.png");
        background-position: center center;
        background-repeat: no-repeat;
    }

    .crm{
        background-color:#6871e3;
        background-image: url("../images/crm_wev8.png");
        background-position: center center;
        background-repeat: no-repeat;
    }

    .blog{
        background-color:#56de37;
        background-image: url("../images/blog_wev8.png");
        background-position: center center;
        background-repeat: no-repeat;

    }


    .doc{
        background-color:#fd2677;
        background-image: url("../images/doc_wev8.png");
        background-position: center center;
        background-repeat: no-repeat;

    }

    .meetting{
        background-color:#fd2677;
        background-image: url("../images/meetting_wev8.png");
        background-position: center center;
        background-repeat: no-repeat;

    }

    .workplan{
        background-color:#fd2677;
        background-image: url("../images/workplan_wev8.png");
        background-position: center center;
        background-repeat: no-repeat;

    }

    .num{
        position: absolute;
        left: 0px;
        bottom: 0px;
        color: #ffffff;
        padding-left: 15px;
        padding-bottom: 10px;
        font-size: 24px;
        font-family: 微软雅黑;
    }

    .mtitle{
        height:80px;
        margin:auto;
        bottom: 0px;
        color: #ffffff;
        width:80px;
        font-size: 20px;
        vertical-align:middle;
        text-align:center;
        line-height:80px;
        font-family: 微软雅黑;
        display: none;


    }
    .item {
        background-color: rgb(255, 255, 255);
    }
    #item_263
    .header ,#item_49
    .header ,#item_76
    .header ,#item_45
    .header ,#item_48
    .header ,#item_77
    .header {
        background-position: 0% 50%;
        height: 32px !important;
        border-top-color: rgb(194, 213, 252);
        border-right-color: rgb(194, 213, 252);
        border-bottom-color: rgb(0, 0, 255) !important;
        border-left-color: rgb(194, 213, 252);
        border-bottom-width: 2px !important;
        background-image: none !important;
        background-repeat: repeat-x;
        background-color: rgb(255, 255, 255) !important;
    }
    #item_263
    .toolbar ,#item_49
    .toolbar ,#item_76
    .toolbar ,#item_45
    .toolbar ,#item_48
    .toolbar ,#item_77
    .toolbar {
        top: 9px;
        right: 5px;
    }
    #item_263
    .toolbar ul ,#item_49
    .toolbar ul ,#item_76
    .toolbar ul ,#item_45
    .toolbar ul ,#item_48
    .toolbar ul ,#item_77
    .toolbar ul {
        margin: 0px;
        padding: 0px;
        list-style-type: none;
    }
    #item_263
    .toolbar ul li a ,#item_49
    .toolbar ul li a ,#item_76
    .toolbar ul li a ,#item_45
    .toolbar ul li a ,#item_48
    .toolbar ul li a ,#item_77
    .toolbar ul li a {
        padding: 0px 3px;
        text-decoration: underline;
        float: left;
        display: block;
    }
    #item_263
    .toolbar ul li ,#item_49
    .toolbar ul li ,#item_76
    .toolbar ul li ,#item_45
    .toolbar ul li ,#item_48
    .toolbar ul li ,#item_77
    .toolbar ul li {
        height: 1px;
        float: left;
    }
    #item_263
    .toolbar ul li a ,#item_49
    .toolbar ul li a ,#item_76
    .toolbar ul li a ,#item_45
    .toolbar ul li a ,#item_48
    .toolbar ul li a ,#item_77
    .toolbar ul li a {
        height: 0px;
    }
    #item_263
    .icon ,#item_49
    .icon ,#item_76
    .icon ,#item_45
    .icon ,#item_48
    .icon ,#item_77
    .icon {
        left: 0px !important;
        top: 5px !important;
        position: absolute;
    }
    #item_263
    .title ,#item_49
    .title ,#item_76
    .title ,#item_45
    .title ,#item_48
    .title ,#item_77
    .title {
        left: 27px;
        top: 8px;
        color: rgb(0, 0, 0);
        font-family: 宋体;
        font-size: 12px;
        font-style: normal;
        font-weight: bold;
        border-bottom-color: rgb(0, 0, 0) !important;
        border-bottom-width: 0px !important;
        border-bottom-style: solid !important;
    }
    #item_263
    .content ,#item_49
    .content ,#item_76
    .content ,#item_45
    .content ,#item_48
    .content ,#item_77
    .content {
        background-position: 50% 50%;
        border-width: 1px 0px 0px !important;
        border-style: none solid solid;
        border-color: rgb(68, 68, 68) rgb(255, 255, 255) rgb(255, 255, 255) !important;
        overflow: auto;
        padding-top: 10px !important;
        padding-right: 5px;
        padding-bottom: 5px;
        padding-left: 5px;
        background-image: none;
        background-repeat: repeat;
    }
    #item_263
    .font ,#item_49
    .font ,#item_76
    .font ,#item_45
    .font ,#item_48
    .font ,#item_77
    .font {
        color: rgb(0, 0, 0);
        font-family: Verdana;
        font-size: 12px;
        font-style: normal;
        font-weight: normal;
        text-decoration: none;
    }
    #item_263
    .sparator ,#item_49
    .sparator ,#item_76
    .sparator ,#item_45
    .sparator ,#item_48
    .sparator ,#item_77
    .sparator {
        background-image: none !important;
    }
    #item_263
    .tab2 ,#item_49
    .tab2 ,#item_76
    .tab2 ,#item_45
    .tab2 ,#item_48
    .tab2 ,#item_77
    .tab2 {
        background-image: url("http://192.168.1.236:8093/page/resource/userfile/image/ecology8/tabbg1_wev8.png") !important;
    }
    #item_263
    .tab2unselected ,#item_49
    .tab2unselected ,#item_76
    .tab2unselected ,#item_45
    .tab2unselected ,#item_48
    .tab2unselected ,#item_77
    .tab2unselected {
        width: 77px;
        text-align: center;
        color: rgb(189, 189, 189) !important;
        padding-top: 5px;
        font-family: 微软雅黑 !important;
        font-size: 12px;
        font-style: normal;
        font-weight: normal;
        vertical-align: middle;
        cursor: pointer;
        background-image: url("http://192.168.1.236:8093/page/resource/userfile/image/ecology8/tabbg1_wev8.png") !important;
        background-repeat: no-repeat;
    }
    #item_263
    .tab2selected ,#item_49
    .tab2selected ,#item_76
    .tab2selected ,#item_45
    .tab2selected ,#item_48
    .tab2selected ,#item_77
    .tab2selected {
        width: 77px;
        text-align: center;
        color: rgb(3, 122, 207) !important;
        padding-top: 5px;
        font-family: 宋体;
        font-size: 12px;
        font-style: normal;
        font-weight: 700 !important;
        vertical-align: middle;
        cursor: pointer;
        background-image: url("http://192.168.1.236:8093/page/resource/userfile/image/ecology8/tabbg3_wev8.png") !important;
        background-repeat: no-repeat;
    }
    #item_263
    .font:hover ,#item_49
    .font:hover ,#item_76
    .font:hover ,#item_45
    .font:hover ,#item_48
    .font:hover ,#item_77
    .font:hover {
    }
    #item_263
    .header:hover ,#item_49
    .header:hover ,#item_76
    .header:hover ,#item_45
    .header:hover ,#item_48
    .header:hover ,#item_77
    .header:hover {
    }

    ;

</style>

<script language="javascript" src="../js/xmlextras_wev8.js"></script>
<script type="text/javascript" src="../js/jscolor_wev8.js"></script>

<link type="text/css" rel="stylesheet" href="../css/wui_wev8.css">
<link type="text/css" rel="stylesheet" href="../css/e8_zDialog_btn_wev8.css">
<link rel="stylesheet" href="../css/default2_wev8.css" type="text/css">
<script type="text/javascript" src="../js/default_wev8.js"> </script>
<!-- bpf start 2013-10-23  -->

<style type="text/css">
    .popDiv{
        float:right;
        position:absolute;
        top:0px;
        right:0px;
        display:none;
        border:#D8D8D8 1px solid;
    }
    .shadowDiv{
        position:absolute;
        float:left;
        top:0px;
        right:0px;
        width:11px;
        height:7px;
        z-index:3;
        display:none;
        background-image:url(../images/angle_wev8.png);
        background-repeat:no-repeat;
    }
</style>

<div class="shadowDiv" id="shadowBorderDiv"></div>




<script language="javascript">

    function setBorder(){
        var a = jQuery("span.selectedTitle");
        var div = jQuery("#shadowBorderDiv");
        //div.show();
        var _top = a.offset().top+a.height();
        var left = a.offset().left;
        //div.width(a.width());
        var width = a.width()+parseInt(a.css("padding-left").replace("px",""))+parseInt(a.css("padding-right").replace("px",""));
        if(a.offset().top==0){
            div.css("top",_top-5);
            div.css("left",left+(width/2)-7);
        }else{
            div.each(function(){jQuery.dequeue(this,'fx');}).animate({top:_top-1,left:left-1}, 1500);
        }
    }

    jQuery(document).ready(function(){
        window.setTimeout(function(){
            try{
                try{
                    preDo();
                }catch(e){}
                //setBorder();
                try{
                    afterDo();
                }catch(e){}
            }catch(e){jQuery("#shadowBorderDiv").hide();}
        },10);

        jQuery(window).scroll(
            function(){
                try{
                    //setBorder();
                }catch(e){}
            }
        );

        jQuery("#hoverBtnSpan").bind("click",function(e){
            try{
                //jQuery("#shadowBorderDiv").hide();
                setBorder();
            }catch(e){jQuery("#shadowBorderDiv").hide();}
        });

    });

    function startMouseMove(){
        var handle = null;
        jQuery(document).bind("mousemove",function(e){
            var event = e || window.event;
            var pageX = e.pageX;
            var width = jQuery(document).width();
            //console.log(jQuery(document).width()+"::"+e.pageX+"::"+handle);
            if(Math.abs(pageX-width)<=50){
                if(handle==null){
                    handle=window.setTimeout(function(){
                        jQuery("#popDiv").show("slow");
                    },1000);
                }
            }else{
                clearTimeout(handle);
                handle=null;
            }
        });
        jQuery("#popDiv").hover(function(){},function(){
            jQuery("#popDiv").hide("slow");
        });
    }


    function showHelp(){
        /*var pathKey = this.location.pathname;
    //alert(pathKey);
    if(pathKey!=""){
        pathKey = pathKey.substr(1);
    }*/
        var pathKey = "";
        var __url = this.location.href;
        try {
            var __regexp = new RegExp("http://[^/]+", "gmi");
            __url = __url.replace(__regexp, '');
        } catch (e) {}
        pathKey = encodeURIComponent(__url);
        var operationPage = "http://help.e-cology.com.cn/help/RemoteHelp.jsp";
        var screenWidth = window.screen.width*1;
        var screenHeight = window.screen.height*1;

        var isEnableExtranetHelp = 1;
        if(isEnableExtranetHelp==1){
            //operationPage = "http://e-cology.com.cn/formmode/apps/ktree/ktreeHelp.jsp";
            operationPage = 'http://www.e-cology.com.cn/formmode/apps/ktree/ktreeHelp.jsp';
        }
        window.open(operationPage+"?pathKey="+pathKey,"_blank","top=0,left="+(screenWidth-800)/2+",height="+(screenHeight-90)+",width=1000,status=no,scrollbars=yes,toolbar=yes,menubar=no,location=no");
    }
    function openFavouriteBrowser()
    {

        var BacoTitle = jQuery("#BacoTitle");
        var pagename = "";
        var navName = "";
        var fav_uri = "%2Fhomepage%2FHomepage.jsp";
        var fav_querystring = "isfromportal%3D1%5EsubCompanyId%3D5%5Eisfromhp%3D0%5Ehpid%3D7";

        try
        {
            var e8tabcontainer = jQuery("div[_e8tabcontainer='true']",parent.document);
            if(e8tabcontainer.length > 0)
            {
                fav_uri = escape(parent.window.location.pathname);
                fav_querystring = escape(parent.window.location.search);
                navName = e8tabcontainer.find("#objName").text();
            }else{
                navName = jQuery("#objName").text();
            }
            //alert(fav_uri+"  "+fav_querystring)
        }
        catch(e)
        {

        }
        if(BacoTitle)
        {
            pagename = BacoTitle.text();
        }
        if(!pagename){
            pagename = navName;
        }
        pagename = escape(pagename);
        //window.showModalDialog('/systeminfo/BrowserMain.jsp?url=/favourite/FavouriteBrowser.jsp&fav_pagename='+pagename+'&fav_uri='+fav_uri+'&fav_querystring='+fav_querystring+'&mouldID=doc');
        //var dialogurl = '/systeminfo/BrowserMain.jsp?url=/favourite/FavouriteBrowser.jsp&fav_pagename='+pagename+'&fav_uri='+fav_uri+'&fav_querystring='+fav_querystring+'&mouldID=doc';
        var dialogurl = '/systeminfo/BrowserMain.jsp?url=/favourite/FavouriteBrowser.jsp&fav_uri='+fav_uri+'&mouldID=doc';  //fav_pagename和fav_querystring不通过url传值，而通过session获取，避免url过长时，导致问题
        var dialog = new window.top.Dialog();
        dialog.currentWindow = window;
        dialog.URL = dialogurl;
        dialog.Title = "收藏夹";
        dialog.Width = 550 ;
        dialog.Height = 600;
        dialog.Drag = true;
        dialog.show();
    }
</script>



<input name="ispagesetting" type="hidden" value="false">






<style type="text/css" id="styleMenu">
    .navigate{
        color:#E2E7ED;/*前景色*/
        background:url('/images/homepage/navgatebg_wev8.gif');




        padding-left:'5px';
        font-style:;
        font-weight:;
        font-size:		12px;
        FONT-FAMILY: "微软雅黑!important";
        border-left:0;

    }
    .divMenu {
        float:			left;
        padding:		6px 6px 6px 6px;
        z-index:		1;
        top:			0;
        border-right-width:1px;
        border-right-style:solid;
        border-right-color:#235EA7;/*边框颜色*/
        position:		relative;
        height:16;
        _height:28;
        background:url('/images/homepage/navgatebg_wev8.gif');


    }
    .divMenuSelected {
        background:#235EA7;       /*背景色*/

        color:#FFFFFF;
        font-style:;
        font-weight:;
        font-size:		12px;
        FONT-FAMILY: "微软雅黑!important";
        float:			left;
        padding:		6px 6px 6px 6px;

        border-right-width:1px;
        border-right-style:solid;
        border-right-color:#235EA7;/*边框颜色*/
        z-index:		1;
        top:			0;
        position:		relative;
        height:16;
        _height:28;
    }

    .subNavigate{
        z-index:		2;
        color:#E2E7ED;/*前景色*/
        border-right-width:1px;
        border-right-style:solid;
        border-right-color:#235EA7;/*边框颜色*/
        font-style:;
        font-weight:;
        font-size:		12px;
        FONT-FAMILY: "微软雅黑!important";
        border-bottom:0;

        filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
    }
    .divSubMenu {
        background:url('/images/homepage/navgatebg_wev8.gif');

        cursor:pointer;
        float:none;

        padding:3px 1px 1px 1px;
        border-bottom:	1px solid #235EA7;

    }
    .divSubMenuSelected {
        background:#235EA7;       /*背景色*/

        color:#FFFFFF;
        font-style:normal;&#13;
        font-weight:bold;&#13;
        font-size:		12px;
        FONT-FAMILY: "微软雅黑!important";
        font-style:;
        font-weight:;
        cursor:pointer;
        float:none;

        padding:3px 1px 1px 1px;
        border-bottom:	1px solid #235EA7;
        filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
    }

</style>













<input type="hidden" id="needShow" name="needShow" value="0">

<script language="JavaScript">
    var _parentmenuDocument = document;
    var _menuDocument = document;
    var _menuWindow = window;
    var __isReloadPage = true;
    var __isParentPage = false;
    //当前使用的主题
    var GLOBAL_CURRENT_THEME = "ecology8";
    //当前主题使用的皮肤
    var GLOBAL_SKINS_FOLDER = "default";
    function setMenuBoxHeightSelf(){
        try{
            var objhasTopTitleExtInput = _menuDocument.getElementById("hasTopTitleExtInput");
            if(objhasTopTitleExtInput!=null && objhasTopTitleExtInput.value=="1"){
                _menuDocument.getElementById("rightMenu").style.visibility = "hidden";
                _menuDocument.getElementById("rightMenu").style.display="none";
            }
        }catch(e){}
        var menuCount = "4";
        var bodyWidth = _menuWindow._menuDocument.body.offsetWidth;
        var menuCountLine = bodyWidth/160>1 ? Math.ceil(bodyWidth/160)-1 : Math.ceil(bodyWidth/160);
        var lineCount = Math.ceil(menuCount/menuCountLine);
        var h = 24*lineCount;
        //_menuWindow.status = "bodyWidth:"+bodyWidth+" | menuCountLine:"+menuCountLine+" | lineCount:"+lineCount;
        _menuDocument.getElementById("rightMenuIframe").height = h + "px";

        _menuWindow.frames["rightMenuIframe"]._menuDocument.getElementById("menuTable").style.height = h + "px";

        try{
            _menuDocument.getElementById("divTopMenu").style.border = "0px";
        }catch(e){}
        try{
            _menuDocument.getElementById("rightMenu").style.border = "0px";
        }catch(e){}

    }
    var __parent = window;

    function writeIframe(evt,__document,_contentWindow)
    {	 try{
        if(!!__document){
            _menuDocument = __document;
            _parentDocument = __document;
            rightMenu = _menuDocument.getElementById("rightMenu");
        }
        if(!!_contentWindow){
            __parent = _contentWindow;
            parent.__parent = _contentWindow;
        }
        var shtmlTemp = "<div id='menuTable' name='menuTable' unselectable='on' class='b-m-mpanel' style='background-color:rgb(249,249,249);'><div id='menuItemDivId0' unselectable='on' class='b-m-item'  onmouseover=\"this.className=\'b-m-ifocus\'\" onmouseout=\"this.className=\'b-m-item\'\"   ><div class='b-m-ibody' unselectable='on'><nobr unselectable='on'><img width=16   src='/wui/theme/ecology8/skins/default/contextmenu/default/1_wev8.png' align='absmiddle'><button  onclick='javascript:parent.onChanageAllStatus(this);parent.hideRightClickMenu();'   style='width:120px;' title='<span id=spanStatus status=show>全部收缩</span>'><span id=spanStatus status=show>全部收缩</span></button></nobr></div></div><div id='menuItemDivId1' unselectable='on' class='b-m-item'  onmouseover=\"this.className=\'b-m-ifocus\'\" onmouseout=\"this.className=\'b-m-item\'\"   ><div class='b-m-ibody' unselectable='on'><nobr unselectable='on'><img width=16   src='/wui/theme/ecology8/skins/default/contextmenu/default/2_wev8.png' align='absmiddle'><button  onclick='javascript:parent.showColDialog();parent.hideRightClickMenu();'   style='width:120px;' title='显示列定制'>显示列定制</button></nobr></div></div><div id='menuItemDivId2' unselectable='on' class='b-m-item'  onmouseover=\"this.className=\'b-m-ifocus\'\" onmouseout=\"this.className=\'b-m-item\'\"   ><div class='b-m-ibody' unselectable='on'><nobr unselectable='on'><img width=16   src='/wui/theme/ecology8/skins/default/contextmenu/default/3_wev8.png' align='absmiddle'><button  onclick='javascript:parent.openFavouriteBrowser();parent.hideRightClickMenu();'   style='width:120px;' title='收藏'>收藏</button></nobr></div></div><div id='menuItemDivId3' unselectable='on' class='b-m-item'  onmouseover=\"this.className=\'b-m-ifocus\'\" onmouseout=\"this.className=\'b-m-item\'\"   ><div class='b-m-ibody' unselectable='on'><nobr unselectable='on'><img width=16   src='/wui/theme/ecology8/skins/default/contextmenu/default/4_wev8.png' align='absmiddle'><button  onclick='javascript:parent.showHelp();parent.hideRightClickMenu();'   style='width:120px;' title='帮助'>帮助</button></nobr></div></div></div>";
        if(!!_contentWindow){
            shtmlTemp = shtmlTemp.replace(/\bparent\./g,"__parent.");
        }
        var shtml = "<!DOCTYPE HTML><html><head><script>__parent=parent.__parent;<"+"/script><link href='/wui/theme/" + GLOBAL_CURRENT_THEME + "/skins/" + GLOBAL_SKINS_FOLDER + "/contextmenu/contextmenu_wev8.css' rel='stylesheet' type='text/css' /><link rel='stylesheet' href='/css/Weaver_wev8.css'></head><body leftmargin=0 topmargin=0 bottommargin=0  oncontextmenu='return false'>";
        shtml += shtmlTemp;
        shtml += "</body></html>";
        if(_menuDocument.getElementById("rightMenuIframe")&&_menuDocument.getElementById("rightMenuIframe").contentWindow){
            if(!!_contentWindow){
                //_menuDocument.getElementById("rightMenuIframe").contentWindow.__parent = _contentWindow;
            }
            _menuDocument.getElementById("rightMenuIframe").contentWindow.document.writeln(shtml);
            _menuDocument.getElementById("rightMenuIframe").contentWindow.document.close();
            try{
                if(_menuDocument.getElementById("rightMenuIframe").contentWindow.document.getElementById("menuTable").innerHTML == ""){
                    _menuDocument.getElementById("rightMenu").style.display = "none";
                }
            }catch(e){}
        }

        try{
            var pageId = jQuery("#pageId").val();
            if(!pageId || (!!jQuery("#pageId").attr("_showCol") && jQuery("#pageId").attr("_showCol").toLowerCase()=="false")){
                hiddenRCMenuItem(1);
            }
        }catch(e){}

        _menuWindow.setTimeout(function(){
            try{
                var menuCount = 0;
                jQuery("#menuTable", _menuDocument.getElementById("rightMenuIframe").contentWindow.document).children().each(function () {
                    if (!jQuery(this).css("display") || jQuery(this).css("display").toLowerCase() != "none") {
                        menuCount++;
                    }
                });
                jQuery("#rightMenuIframe",_menuDocument).css("height", (menuCount * 22+6) + "px");
            }catch(e){
            }
        },2000);
    }catch(e){
        if(window.console)console.log(e,"RightClickMenu.jsp#writeIframe");
    }
    }



    //由原来的apXPDropDown.class转为直接用Button，2003-11-18杨国生。 end

</script>

<div id="rightMenu" name="rightMenu" style="z-index: 99999; position: absolute; visibility: hidden; display: none;" class="clickRightMenu">
    <!--//由原来的apXPDropDown.class转为直接用Button，2003-11-18杨国生。 -->
    <iframe id="rightMenuIframe" name="rightMenuIframe" frameborder="0" marginheight="0" marginwidth="0" hspace="0" vspace="0" scrolling="no" width="148px" height="96px">
    </iframe>
</div>

<script language="JavaScript">
    //解决新流程界面在加载页面时，会出现顶部菜单先出现再消失的问题 Start
    var needShow = false;
    var rightMenuStr="#rightMenu";
    var rightMenu = _menuDocument.getElementById("rightMenu");



    function showRightClickMenuByHand(_left,_top){
        if(__isParentPage){
            _top += 60;
            _top -= jQuery(document).scrollTop();
        }
        jQuery("#rightMenu",_menuDocument).css("left", _left);
        jQuery("#rightMenu",_menuDocument).css("top", _top);
        jQuery("#rightMenu",_menuDocument).css("visibility", "visible");
        jQuery("#rightMenu",_menuDocument).show();
    }

    var focus_e;
    function showRightClickMenu(e){

        if(typeof(changePageMenuDiaplay)=="function"){
            changePageMenuDiaplay(2);
        }
        focus_e = _menuDocument.activeElement;
        var evt = e?e:(_menuWindow.event?_menuWindow.event:null);
        var target = null;
        if(_menuWindow.event){
            target = evt.srcElement;
        }else{
            target = evt.target;
        }
        var exceptTop = 0;
        if(jQuery(target).closest("div.e8_boxhead").length==0 && __isParentPage){
            exceptTop = 60;
        }
        var rightedge=_menuDocument.body.clientWidth-evt.clientX
        var bottomedge=_menuDocument.body.clientHeight-evt.clientY
        var scrolltop =  get_scrollTop_of_body();
        if(__isParentPage){
            scrolltop = 0;
        }
        if(rightedge>evt.clientX){
            jQuery(rightMenuStr,_menuDocument).css("left",_menuDocument.body.clientWidth-rightedge);
        }else{
            jQuery(rightMenuStr,_menuDocument).css("left",evt.clientX-_menuDocument.getElementById("rightMenu").offsetWidth);
        }
        if(bottomedge>evt.clientY){
            jQuery(rightMenuStr,_menuDocument).css("top",evt.clientY+scrolltop+exceptTop);
        }else{
            jQuery(rightMenuStr,_menuDocument).css("top",_menuDocument.body.clientHeight+scrolltop-bottomedge+exceptTop);
        }
        if(_menuDocument.getElementById("rightMenu").offsetHeight>bottomedge){
            if(evt.clientY>(_menuDocument.body.clientHeight/2)){//当页面高度小于菜单高度，那么在页面的上面二分之一的地方点击，菜单显示上面部分，在页面下面部分点击，菜单显示下面部分
                jQuery(rightMenuStr,_menuDocument).css("top",_menuDocument.body.clientHeight+scrolltop-_menuDocument.getElementById("rightMenu").offsetHeight+exceptTop);
            }
        }

        _menuDocument.getElementById("rightMenu").style.visibility="visible";
        jQuery(rightMenuStr,_menuDocument).show();
        try{
            evt.stopPropagation();
        }catch(e){
            evt.cancelBubble = true
            evt.returnValue = false;
        }
        return false;
    }
    function get_scrollTop_of_body(){
        var scrollTop;
        if(typeof _menuWindow.pageYOffset != 'undefined'){
            scrollTop = _menuWindow.pageYOffset;
        }else if(typeof _menuDocument.compatMode != 'undefined' && _menuDocument.compatMode != 'BackCompat')        {
            scrollTop = _menuDocument.documentElement.scrollTop;
        }else if(typeof _menuDocument.body != 'undefined'){
            scrollTop = _menuDocument.body.scrollTop;
        }
        return scrollTop;
    }
    function hideRightClickMenu(){
        if(jQuery("#modeTitle",_menuWindow.parent._menuDocument).length>0){
            jQuery("#modeTitle",_menuWindow.parent._menuDocument).parent().css("display","none");
        }

        try{
            _menuDocument.getElementById("rightMenu").style.visibility="hidden";
        }catch(e){}
        //rightMenu.style.display=""; //update by liaodong for qc62834 in 20130913
        jQuery(rightMenuStr).hide();

    }

    var isIEBrowser ="false";
    var __closeRightMenu__ = false;

    _menuDocument.getElementById("rightMenu").className = "clickRightMenu";

    _menuDocument.oncontextmenu=showRightClickMenu

    _menuDocument.body.onclick = hideRightClickMenu;

    if(isIEBrowser=="true"){
        _menuDocument.getElementById("rightMenu").style.left = _menuDocument.body.clientWidth-_menuDocument.getElementById("rightMenu").offsetWidth-200;
    }else{
        _menuDocument.getElementById("rightMenu").style.left = _menuDocument.body.clientWidth-_menuDocument.getElementById("rightMenu").offsetWidth-180;
    }
    _menuDocument.getElementById("rightMenu").style.top = 50;


    _menuDocument.getElementById("rightMenu").style.visibility="hidden";
    if (!_menuWindow.ActiveXObject) {
        _menuDocument.getElementById("rightMenu").style.display="none";
    }


    //alert(rightMenu.style.visibility);
    //alert(rightMenu.innerHTML);

    function viewSourceUrl()
    {

        prompt("",location);

    }
    var mouse_event;
    function onRCMenu_copy(){
        var copy_text = _menuDocument.selection.createRange().text;
        //alert(copy_text);
        try{
            if(copy_text==''){
                copy_text = doccontentifm._menuDocument.selection.createRange().text;
            }
        }catch(e){
            copy_text = ShowSelection();
        }
        _menuWindow.clipboardData.setData("Text", copy_text);
        _menuDocument.getElementById("rightMenu").style.visibility="hidden";
        //rightMenu.style.display="none";
    }

    function ShowSelection()    {
        if(_menuDocument.getElementById('FCKiframefieldid')){
            return _menuDocument.getElementById(_menuDocument.getElementById('FCKiframefieldid').value).contentWindow.document.selection.createRange().text;
        }else{
            return "";
        }
    }

    function onRCMenu_plaster(){

        if(_menuWindow.clipboardData.getData("Text") != null){
            try{
                var plaster_text = _menuWindow.clipboardData.getData("Text");
                //e = _menuDocument.activeElement;
                //e = body.focus;
                //alert(focus_e.tagName);
                if((focus_e && focus_e.tagName=="INPUT" && focus_e.type=="text")||(focus_e && focus_e.tagName=="TEXTAREA")){
                    var selectText = getSelectTxt();
                    var pos = getCursorPos(focus_e);
                    if(pos==0){
                        focus_e.value=focus_e.value.replace(selectText,"");
                        focus_e.value = plaster_text+focus_e.value;
                    }else if(pos==focus_e.value.length){
                        focus_e.value=focus_e.value.replace(selectText,"");
                        focus_e.value = focus_e.value+plaster_text;
                    }else if(pos>0&&pos<focus_e.value.length){
                        focus_e.value=focus_e.value.replace(selectText,"");
                        var tmp1 = focus_e.value.substring(0,pos);
                        var tmp2 = focus_e.value.substring(pos,focus_e.value.length);
                        focus_e.value = tmp1+plaster_text+tmp2;
                    }

                }
                _menuDocument.getElementById("rightMenu").style.visibility="hidden";
                _menuDocument.getElementById("rightMenu").style.display="none";
            }catch(e){
                alert(e)
            }
        }
    }

    function getSelectTxt(){
        var selectTxt;
        selectTxt=document.selection.createRange().text;
        return selectTxt;
    }

    function getCursorPos(obj)
    {
        obj.focus();
        var currentRange=document.selection.createRange();
        var workRange=currentRange.duplicate();
        obj.select();
        var allRange=document.selection.createRange();
        var pos=0;
        while(workRange.compareEndPoints("StartToStart",allRange)>0)
        {
            workRange.moveStart("character",-1);
            pos++;
        }
        currentRange.select();
        return   pos;
    }
    function getCursorPos1(inpObj){
        if(navigator.userAgent.indexOf("MSIE") > -1) { // IE
            alert("ie")
            var range = document.selection.createRange();
            range.text = '';
            alert(inpObj.createTextRange())
            range.setEndPoint('StartToStart',inpObj.createTextRange());
            return range.text.length;
        } else {
            return inpObj.selectionStart;
        }
    }

    function showTDTitle(o)
    {
        o.title = o.innerText;
    }
    //显示指定序号的右键菜单 luow TD30081 TD30084
    function showRCMenuItem(menuIntemIndex){
        var rightMenuIframeDocument = _menuDocument.getElementById("rightMenuIframe").contentWindow.document;
        rightMenuIframeDocument.getElementById('menuItemDivId'+menuIntemIndex).style.display="";
        var menuCount = 0;
        jQuery("#menuTable", rightMenuIframeDocument).children().each(function () {
            if (jQuery(this).css("display") != null && jQuery(this).css("display").toLowerCase() != "none") {
                menuCount++;
            }
        });


        jQuery("#rightMenuIframe").css("height", (menuCount * 22+6) + "px");
    }
    //隐藏指定序号的右键菜单 luow TD30081 TD30084
    function hiddenRCMenuItem(menuIntemIndex){
        var rightMenuIframeDocument = _menuDocument.getElementById("rightMenuIframe").contentWindow.document;

        jQuery("#menuItemDivId"+menuIntemIndex,rightMenuIframeDocument).hide();

        var menuCount = 0;
        jQuery("#menuTable", rightMenuIframeDocument).children().each(function () {
            if (!jQuery(this).css("display") || jQuery(this).css("display").toLowerCase() != "none") {
                menuCount++;
            }
        });

        jQuery("#rightMenuIframe").css("height", (menuCount * 22+6) + "px");
    }

    //writeIframe();
    if (_menuWindow.addEventListener){
        _menuWindow.addEventListener("load", writeIframe, false);
    }else if (_menuWindow.attachEvent){
        _menuWindow.attachEvent("onload", writeIframe);
    }else{
        _menuWindow.onload=writeIframe;
    }
    function __openFavouriteBrowser(flag) {
        ___openFavouriteBrowser(flag);
    }

    function __showHelp(flag) {
        if (typeof(showHelp) == 'function') {
            showHelp();
        } else {
            ___showHelp(flag);
        }
    }

    function ___openFavouriteBrowser(flag) {
        var BacoTitle = parent.jQuery("#objName");
        if (!!!BacoTitle[0]) {
            BacoTitle = parent.jQuery("#e8_navtab");
        }
        var pagename = "";

        var fav_uri = "";
        var fav_querystring = "";

        var __url = parent.window.location.href;
        try {
            var __regexp = new RegExp("http://[^/]+", "gmi");
            __url = __url.replace(__regexp, '');
        } catch (e) {
        }
        if (__url.indexOf("?") == -1) {
            fav_uri = __url;
        } else {
            fav_uri = escape(__url.substring(0, __url.indexOf("?")));
            fav_querystring = escape(escape(__url.substr(__url.indexOf("?") + 1)));
        }
        try {
            var e8tabcontainer = jQuery("div[_e8tabcontainer='true']",parent.document);
            if(e8tabcontainer.length > 0)  {
                fav_uri = escape(parent.window.location.pathname);
                fav_querystring = (escape(jQuery.trim(parent.window.location.search)));
            }
        } catch(e) {}
        if (BacoTitle) {
            pagename = BacoTitle.text();
        }

        if (flag == -9) {
            var __reqname = jQuery("input[name=requestname]").val();
            if (!!__reqname && __reqname != "") {
                pagename = __reqname;
            }
        }
        pagename = escape(jQuery.trim(pagename));

        var dialogurl = '/systeminfo/BrowserMain.jsp?url=/favourite/FavouriteBrowser.jsp&fav_pagename='+pagename+'&fav_uri='+fav_uri+'&fav_querystring='+fav_querystring+'&mouldID=doc';
        var dialog = new window.top.Dialog();
        dialog.currentWindow = window;
        dialog.URL = dialogurl;
        dialog.Title = "收藏夹";
        dialog.Width = 550 ;
        dialog.Height = 600;
        dialog.Drag = true;
        dialog.show();
    }

    function ___showHelp(flag){
        /*var pathKey = this.location.pathname;
    //alert(pathKey);
    if(pathKey!=""){
        pathKey = pathKey.substr(1);
    }*/
        var pathKey = "";
        var __url = this.location.href;
        try {
            var __regexp = new RegExp("http://[^/]+", "gmi");
            __url = __url.replace(__regexp, '');
        } catch (e) {}
        pathKey = encodeURIComponent(__url);
        var operationPage = "http://help.e-cology.com.cn/help/RemoteHelp.jsp";
        var screenWidth = window.screen.width*1;
        var screenHeight = window.screen.height*1;
        var isEnableExtranetHelp = 1;
        if(isEnableExtranetHelp==1){
            //operationPage = "/formmode/apps/ktree/ktreeHelp.jsp";
            operationPage = 'http://www.e-cology.com.cn/formmode/apps/ktree/ktreeHelp.jsp';
        }
        window.open(operationPage+"?pathKey="+pathKey,"_blank","top=0,left="+(screenWidth-800)/2+",height="+(screenHeight-90)+",width=1000,status=no,scrollbars=yes,toolbar=yes,menubar=no,location=no");
    }
</script>





<script type="text/javascript">
    //用户语言
    var languageid = '7'
</script>
<script type="text/javascript" src="../js/highslide-full_wev8.js"></script>
<script type="text/javascript" src="../js/simplehrm_wev8.js"></script>
<script type="text/javascript" src="../js/messagejs_wev8.js"></script>
<script language="javascript" src="../js/jquery.qrcode-0.7.0_wev8.js"></script>
<!--[if IE]>
<script src="../js/html5shiv_wev8.js"></script>
<script src="../js/excanvas.compiled_wev8.js"></script>
<![endif]-->
<script type="text/javascript">
    function getImageResult(o)
    {
        hs.graphicsDir = '/js/messagejs/highslide/graphics/';
        hs.outlineType = 'rounded-white';
        hs.fadeInOut = true;
        hs.headingEval = 'this.a.title';
        var hrefimg = document.getElementById("resourceimghref").href;
        if(hrefimg.indexOf("javascript")!=-1)
        {
            void(0);
            return false;
        }
        else
        {
            return hs.expand(o);
        }
    }

    function createQCode(){
        if(jQuery("#showSQRCodeDiv").is(":hidden"))
            jQuery("#showSQRCodeDiv").show();
        else
            jQuery("#showSQRCodeDiv").hide();
    }

    function initSrc(){
        if(jQuery("#result2").html()=="（男）"){
            jQuery("#resourceimg").attr("src","../images/man_wev8.png");
            jQuery("#resourceimg").parent().attr("href","../images/man_wev8.png");
        }else if(jQuery("#result2").html()=="（女）"){
            jQuery("#resourceimg").attr("src","../images/women_wev8.png");
            jQuery("#resourceimg").parent().attr("href","../images/women_wev8.png");
        }
    }
</script>
<style type="text/css">
    <!--
    .STYLE4 {
        FONT-FAMILY: Verdana;
        font-size: 14px;
        cursor: hand;
    }

    .STYLE6 {
        FONT-FAMILY: Verdana;
        FONT-SIZE: 12px;
    }

    .STYLE61 {
        FONT-FAMILY: Verdana;
        FONT-SIZE: 12px;
        color: #000000;
    }

    .simplehrmhead {
        vertical-align:baseline;
    }
    #mainsupports {
        position: absolute;
        font-size: 12px;
        color: #929393;
        display: none;
        z-index: 1;
    }

    #closetext {
        float: right;
        margin-right: 20px;
    }

    #mainsupports li a:link {
        color: #2a788e;
        font-size: 12px;
        text-decoration: none;
    }

    #mainsupports li a:visited {
        color: #227086;
        font-size: 12px;
        text-decoration: none;
    }

    #mainsupports li a:hover {
        color: #FFFFFF;
        font-size: 12px;
        text-decoration: none;
    }

    #resourceimg {
        width: 198px;
        height: 293px;
        margin-top: 0px;
    }
    -->
</style>
<!-- 这里改了z-index(+2),因为UE编辑器会遮住弹窗 -->
<div id="mainsupports" style="z-index:1999;background-color:#e4e4e4;">
    <table width="455px" height="293px" border="0" align="center" style="vertical-align: middle;" cellpadding="0" cellspacing="0">
        <tbody><tr>
            <td width="198px" valign="top">
                <a id="resourceimghref" href="javascript:void(0);" onclick="return getImageResult(this);" onfocus="this.blur()"><img id="resourceimg" src="../images/loading_wev8.gif" border="0" width="100%" height="100%" onerror="initSrc()"></a>
                <div style="position:absolute;top: 243px;background-image:url(&#39;/images/messageimages/temp/divbg_wev8.png&#39;);">
                    <table style="width: 198px;height: 50px;text-align: center;vertical-align: middle;">
                        <tbody><tr>
                            <td><img src="../images/msn_wev8.png" onmouseover="javascript:this.src=&#39;/images/messageimages/temp/msnhot_wev8.png&#39;;" onmouseout="javascript:this.src=&#39;/images/messageimages/temp/msn_wev8.png&#39;;" onclick="javascript:openmessage();" title="发送短信"></td>
                            <td><img src="../images/email_wev8.png" onmouseover="javascript:this.src=&#39;/images/messageimages/temp/emailhot_wev8.png&#39;;" onmouseout="javascript:this.src=&#39;/images/messageimages/temp/email_wev8.png&#39;;" onclick="javascript:openemail();" title="发送邮件"></td>
                            <td><img src="../images/workplan_wev8.png" onmouseover="javascript:this.src=&#39;/images/messageimages/temp/workplanhot_wev8.png&#39;;" onmouseout="javascript:this.src=&#39;/images/messageimages/temp/workplan_wev8.png&#39;;" onclick="javascript:doAddWorkPlan();" title="新建日程"></td>
                            <td><img src="../images/cowork_wev8.png" onmouseover="javascript:this.src=&#39;/images/messageimages/temp/coworkhot_wev8.png&#39;;" onmouseout="javascript:this.src=&#39;/images/messageimages/temp/cowork_wev8.png&#39;;" onclick="javascript:doAddCoWork();" title="新建协作"></td>
                        </tr>
                        </tbody></table>
                </div>
            </td>
            <td valign="top">
                <div style="position:absolute;top: -17px;left: 438px">
                    <img id="closetext" style="cursor: hand;" src="../images/closeicno_wev8.png" onclick="javascript:closediv();">
                </div>
                <div id="showSQRCodeDiv" style="text-align: left;position:absolute;top: -20px;left: 350px; " onclick="createQCode()"></div>
                <table width="257px" height="293px" border="0" style="padding-left: 16px;padding-top: 0px" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0">
                    <tbody><tr height="40px">
                        <td>
                            <div>
                                <img id="isonline" src="../images/online_wev8.png" width="19" height="19" style="vertical-align:top;">&nbsp;<span class="STYLE4" id="result1"></span>&nbsp;<span class="STYLE6" id="result2"></span> &nbsp;<span class="STYLE6" id="result13"></span>&nbsp;&nbsp;&nbsp;&nbsp;
                                <img src="../images/qcode_wev8.png" width="19" height="19" style="vertical-align:middle;cursor: hand;" onclick="createQCode()">
                            </div>
                        </td>
                    </tr>
                    <tr style="height:1px!important;" class="Spacing">
                        <td><div class="intervalDivClass"></div></td>
                    </tr>
                    <tr style="height:4px!important;">
                        <td></td>
                    </tr>
                    <tr>
                        <td>
                            <table height="203px">
                                <tbody><tr>
                                    <td style="WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;">
                                        <span class="STYLE6">部门&nbsp;:&nbsp;&nbsp;&nbsp;</span>
                                        <span class="STYLE61" id="result6"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;">
                                        <span class="STYLE6">分部&nbsp;:&nbsp;&nbsp;&nbsp;</span>
                                        <span class="STYLE61" id="result9"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;">
                                        <span class="STYLE6">岗位&nbsp;:&nbsp;&nbsp;&nbsp;</span>
                                        <span class="STYLE61" id="result10"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;">
                                        <span class="STYLE6">上级&nbsp;:&nbsp;&nbsp;&nbsp;</span>
                                        <span class="STYLE61" id="result7"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;">
                                        <span class="STYLE6">状态&nbsp;:&nbsp;&nbsp;&nbsp;</span>
                                        <span class="STYLE61" id="result11"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;">
                                        <span class="STYLE6">手机&nbsp;:&nbsp;&nbsp;&nbsp;</span>
                                        <span class="STYLE61" id="result3"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;">
                                        <span class="STYLE6">电话&nbsp;:&nbsp;&nbsp;&nbsp;</span>
                                        <span class="STYLE61" id="result4"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="WORD-WRAP: break-word;TEXT-VALIGN: left;word-break:break-all;">
                                        <span class="STYLE6">邮件&nbsp;:&nbsp;&nbsp;&nbsp;</span>
                                        <span class="STYLE61" id="result5"></span>
                                    </td>
                                </tr>
                                </tbody></table>
                        </td>
                    </tr>
                    <tr height="42px">
                        <td align="right" valign="middle" style="padding-right: 12px">
                            <span class="STYLE6" id="result0"></span>
                        </td>
                    </tr>
                    </tbody></table>
            </td>
        </tr>
        </tbody></table>
</div>


<!--菜单TABLE begin-->

<!--Debug Div-->
<textarea id="txtDebug" style="width:100%;height:200px;display:none"></textarea>

<!--Show Div-->
<div id="divInfo" style="border:1px solid #8888AA; background:white;display:none;position:absolute;padding:5px;posTop:expression(document.body.offsetHeight/2+document.body.scrollTop-50);posLeft:expression(document.body.offsetWidth/2-50);z-index:100;"></div>



<!--Content Table-->
<input type="hidden" value="btnWfCenterReload" id="btnWfCenterReload" name="btnWfCenterReload" onclick="elmentReLoad(8)">


<table id="container_Table" width="100%">
    <tbody><tr>

        <td>
            <div id="Element_Container" style="width:100%;display:block;vertical-align:top;height:100%;margin-left: 1px;">

		<span id="spanContent" style=" %&gt;">

			 <style type="text/css">
#Container{
    width:99%;
    margin-left:10px;
}
.item{
    margin-top:10px;
}
.group{
    margin-right:10px;
}
</style>
<table id="Container" cellpadding="0" cellspacing="0">
	<tbody><tr>
		<td width="65%" style="" valign="TOP" class="ui-droppable">
			<div class="group" areaflag="A">
					<!---------Element49:------------->
<div class="item" id="item_49" eid="49" style="position:relative;margin-top:10px;margin-right: 0px; margin-bottom:0px; margin-left:0px;" ebaseid="29" needrefresh="true" cornertop="Right" cornertopradian="8px" cornerbottom="Right" cornerbottomradian="5px" isbeforeinit="true" isinited="true" elementload_queue_timeout_flag="true">
<div class="header" issetting="false" sharelevel="" style="width:auto;_width:100%;position:relative;display:block!important;" id="header_49">
<span class="icon" style="position:absolute;cursor:hand;" id="icon_49"><img border="0" src="../images/le_board.png" onclick="onShowOrHideE(49)" title="收缩/展开"></span>
<span class="title" style="position:absolute;" id="title_49"></span>
<span class="toolbar" style="position:absolute;" id="toolbar_49"> <ul></ul></span>
<span class="toolbarSub" id="toolbarSub_49"></span>
</div>
<div class="content" style="width:auto;_width:100%;" id="content_49"><div class="content_view" id="content_view_id_49" url="/page/element/29/Iframe.jsp?ebaseid=29&amp;eid=49&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5" style="">

<!-- 判断元素是否可以独立显示，引入样式 -->
<div id="titleContainer_49" style="border: 0px; width: 100%; position: relative; overflow: hidden; display: none; background-image: url(&quot;http://192.168.1.236:8093/page/resource/userfile/image/ecology8/tabbg1_wev8.png&quot;);">

<div id="tabnavprev_49" style="position: relative; float: left; left: -5px; top: -5px; display: none;" class="picturebackhp" onclick="backMarqueeDiv7(&#39;#tabContainer_49&#39;);">&nbsp;</div>

<div id="tabContainer_49" class="tab2" style="width:100%;overflow:hidden;display:block;float:left;">
	<table height="32" width="77" cellspacing="0" cellpadding="0" border="0" style="table-layout:fixed;">
		<tbody><tr>
					<td style="word-wrap:break-word;padding-top:5px;vertical-align:top;" id="tab_49" tabid="1" class="tab2selected" onclick="loadContent(&#39;49&#39;,&#39;/rw.swf.html&#39;,&#39;ebaseid=29&amp;eid=49&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5&amp;e71512468217299=&amp;pagetype=&amp;fieldids=&amp;fieldvalues=&amp;tabWhere=/rw.swf.html^,^^,^100^,^230&#39;,event)">重点工作任务...</td>
		</tr>
	</tbody></table>
</div>
    <div id="tabnavnext_49" style="position: relative; float: right; right: -5px; top: -6px; display: none;" class="picturenexthp" onclick="nextMarqueeDiv7(&#39;#tabContainer_49&#39;);">&nbsp;</div>

</div>
<div id="tabContant_49">


<iframe id="ifrm_49" name="ifrm_49" border="0" frameborder="no" noresize="NORESIZE" scrolling="auto" width="100%" height="230" src="../html/rw.html"></iframe>

</div>
</div>
<div style="text-align:right;" id="footer_49">

</div>
</div>
</div>
                <!---------Element48:------------->
<div class="item" id="item_48" eid="48" style="position:relative;margin-top:10px;margin-right: 0px; margin-bottom:0px; margin-left:0px;" ebaseid="29" needrefresh="true" cornertop="Right" cornertopradian="8px" cornerbottom="Right" cornerbottomradian="5px" isbeforeinit="true" isinited="true" elementload_queue_timeout_flag="true">
<div class="header" issetting="false" sharelevel="" style="width:auto;_width:100%;position:relative;display:block!important;" id="header_48">
<span class="icon" style="position:absolute;cursor:hand;" id="icon_48"><img border="0" src="../images/le_ma.png" onclick="onShowOrHideE(48)" title="收缩/展开"></span>
<span class="title" style="position:absolute;" id="title_48"></span>
<span class="toolbar" style="position:absolute;" id="toolbar_48"> <ul></ul></span>
<span class="toolbarSub" id="toolbarSub_48"></span>
</div>
<div class="content" style="width:auto;_width:100%;" id="content_48"><div class="content_view">


<!-- 判断元素是否可以独立显示，引入样式 -->


<div id="titleContainer_48" style="border: 0px; width: 100%; position: relative; overflow: hidden; background-image: url(&quot;http://192.168.1.236:8093/page/resource/userfile/image/ecology8/tabbg1_wev8.png&quot;);">

<div id="tabnavprev_48" style="position: relative; float: left; left: -5px; top: -5px; display: none;" class="picturebackhp" onclick="backMarqueeDiv7(&#39;#tabContainer_48&#39;);">&nbsp;</div>

<div id="tabContainer_48" class="tab2" style="width: 1215px; overflow: hidden; float: left; margin-left: 0px; margin-right: 0px;">
	<table height="32" width="231" cellspacing="0" cellpadding="0" border="0" style="table-layout:fixed;">
		<tbody><tr>
					<td style="word-wrap:break-word;padding-top:5px;vertical-align:top;" id="tab_48" tabid="1" class="tab2selected" onclick="loadContent(&#39;48&#39;,&#39;/page/element/compatible/IframeTabContentData.jsp&#39;,&#39;ebaseid=29&amp;eid=48&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5&amp;e71512468217302=&amp;pagetype=&amp;fieldids=&amp;fieldvalues=&amp;tabWhere=/Highcharts/myreport/业务报表.htm^,^^,^100^,^300&#39;,event)">业绩报表</td>


					<td style="word-wrap:break-word;padding-top:5px;vertical-align:top;" id="tab_48_2" tabid="2" class="tab2unselected" onclick="loadContent(&#39;48&#39;,&#39;/page/element/compatible/IframeTabContentData.jsp&#39;,&#39;ebaseid=29&amp;eid=48&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5&amp;e71512468217302=&amp;pagetype=&amp;fieldids=&amp;fieldvalues=&amp;tabWhere=/Highcharts/myreport/行政报表.htm^,^^,^100^,^300&#39;,event)">行政报表</td>


					<td style="word-wrap:break-word;padding-top:5px;vertical-align:top;" id="tab_48_3" tabid="3" class="tab2unselected" onclick="loadContent(&#39;48&#39;,&#39;/page/element/compatible/IframeTabContentData.jsp&#39;,&#39;ebaseid=29&amp;eid=48&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5&amp;e71512468217302=&amp;pagetype=&amp;fieldids=&amp;fieldvalues=&amp;tabWhere=/Highcharts/myreport/风控报表.htm^,^^,^100^,^300&#39;,event)">风控报表</td>

		</tr>
	</tbody></table>
</div>



    <div id="tabnavnext_48" style="position: relative; float: right; right: -5px; top: -6px; display: none;" class="picturenexthp" onclick="nextMarqueeDiv7(&#39;#tabContainer_48&#39;);">&nbsp;</div>



</div>
<div id="tabContant_48">
<iframe id="ifrm_48" name="ifrm_48" border="0" frameborder="no" noresize="NORESIZE" scrolling="auto" width="100%" height="300" src="../html/业务报表.html"></iframe>
</div>

</div>

<div style="text-align:right;" id="footer_48">
</div>
</div>
</div>

                <!---------Element77:------------->
<div class="item" id="item_77" eid="77" style="position:relative;margin-top:10px;margin-right: 0px; margin-bottom:0px; margin-left:0px;" ebaseid="7" needrefresh="true" cornertop="Right" cornertopradian="8px" cornerbottom="Right" cornerbottomradian="5px" isbeforeinit="true" isinited="true" elementload_queue_timeout_flag="false">
<div class="header" issetting="false" sharelevel="" style="width:auto;_width:100%;position:relative;display:block!important;" id="header_77">
<span class="icon" style="position:absolute;cursor:hand;" id="icon_77"><img border="0" src="../images/le_report.png" onclick="onShowOrHideE(77)" title="收缩/展开"></span>
<span class="title" style="position:absolute;" id="title_77"></span>
<span class="toolbar" style="position:absolute;" id="toolbar_77"> <ul></ul></span>
<span class="toolbarSub" id="toolbarSub_77"></span>
</div>
<div class="content" style="width:auto;_width:100%;" id="content_77"><div class="content_view" id="content_view_id_77" url="/page/element/7/News.jsp?ebaseid=7&amp;eid=77&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5" style="">

<style type="text/css" rel="STYLESHEET">
.picturebackhp
{
    width: 18px;
    height: 32px;
    float:left;
    background: transparent url(/page/element/Picture/resource/image/scroll_left_wev8.gif) no-repeat 0 0;
}
.picturenexthp
{
    width: 18px;
    height: 32px;
    float:left;
    background: transparent url(/page/element/Picture/resource/image/scroll_right_wev8.gif) no-repeat 0 0;
}
</style>

<div id="titleContainer_77" style="border: 0px; width: 100%; overflow: hidden; position: relative; display: none; background-image: url(&quot;http://192.168.1.236:8093/page/resource/userfile/image/ecology8/tabbg1_wev8.png&quot;);">

<div id="tabnavprev_77" style="position: relative; float: left; left: -5px; top: -5px; display: none;" class="picturebackhp" onclick="backMarqueeDiv7(&#39;#tabContainer_77&#39;);">&nbsp;</div>

<div id="tabContainer_77" class="tab2" style="width:100%;overflow:hidden;display:none;float:left;">
	<table height="32" width="77" cellspacing="0" cellpadding="0" border="0" style="table-layout:fixed;">
		<tbody><tr>


					<td style="word-wrap:break-word;padding-top:5px;vertical-align:top;" id="tab_77" tabid="1" class="tab2selected" onclick="loadContent(&#39;77&#39;,&#39;/page/element/compatible/NewsTabContentData.jsp&#39;,&#39;ebaseid=7&amp;eid=77&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5&amp;e71512468217304=&amp;pagetype=&amp;fieldids=&amp;fieldvalues=&amp;tabsize=1&amp;tabWhere=2|117|0^,^1^,^None^,^0^topdoc^&#39;,event)">数据上报</td>

		</tr>
	</tbody></table>
</div>

    <div id="tabnavnext_77" style="position: relative; float: right; right: 0px; top: -6px; display: none;" class="picturenexthp" onclick="nextMarqueeDiv7(&#39;#tabContainer_77&#39;);">&nbsp;</div>



</div>

<div id="tabContant_77">
<table id="_contenttable_77" class="Econtent" width="100%">
   <tbody><tr>
	 <td width="1px"></td>
	 <td width="*" valign="top">

	 <table class="elementdatatable" width="100%">
<tbody><tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="是否"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=1092&amp;isOpenFirstAss=0&#39;,&#39;1092&#39;)"><font class="font docnamedetail">是否</font></a>
</td>
<td width="76"><font class="font">2017-10-30</font></td>
</tr>
<tr class="sparator" style="height:1px" height="1px"><td style="padding:0px" colspan="3"></td></tr>
<tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="我来了"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=1012&amp;isOpenFirstAss=0&#39;,&#39;1012&#39;)"><font class="font docnamedetail">我来了</font></a>
</td>
<td width="76"><font class="font">2017-10-13</font></td>
</tr>
<tr class="sparator" style="height:1px" height="1px"><td style="padding:0px" colspan="3"></td></tr>
<tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="tryrtyr"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=368&amp;isOpenFirstAss=0&#39;,&#39;368&#39;)"><font class="font docnamedetail">tryrtyr</font></a>
</td>
<td width="76"><font class="font">2017-07-19</font></td>
</tr>
<tr class="sparator" style="height:1px" height="1px"><td style="padding:0px" colspan="3"></td></tr>
<tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="公司经营报表2015V1.0"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=73&amp;isOpenFirstAss=0&#39;,&#39;73&#39;)"><font class="font docnamedetail">公司经营报表2015V1.0</font></a>
</td>
<td width="76"><font class="font">2015-06-24</font></td>
</tr>
<tr class="sparator" style="height:1px" height="1px"><td style="padding:0px" colspan="3"></td></tr>
<tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="公司财务报表2015V1.0"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=72&amp;isOpenFirstAss=0&#39;,&#39;72&#39;)"><font class="font docnamedetail">公司财务报表2015V1.0</font></a>
</td>
<td width="76"><font class="font">2015-06-24</font></td>
</tr>
</tbody></table>


	</td></tr></tbody></table>

</div>


</div>

<div style="text-align:right;" id="footer_77">

</div>
</div>
</div>
			</div>
		</td>
		<td width="35%" style="" valign="TOP" class="ui-droppable">
			<div class="group" areaflag="B">
					<!---------Element45:------------->
<div class="item" id="item_45" eid="45" style="position:relative;margin-top:10px;margin-right: 0px; margin-bottom:0px; margin-left:0px;" ebaseid="MyCalendar" needrefresh="true" cornertop="Right" cornertopradian="8px" cornerbottom="Right" cornerbottomradian="5px" isbeforeinit="true" isinited="true" elementload_queue_timeout_flag="true">
<div class="header" issetting="false" sharelevel="" style="width:auto;_width:100%;position:relative;display:block!important;" id="header_45">
<span class="icon" style="position:absolute;cursor:hand;" id="icon_45"><img border="0" src="../images/le_calendar.png" onclick="onShowOrHideE(45)" title="收缩/展开"></span>
<span class="title" style="position:absolute;" id="title_45"></span>
<span class="toolbar" style="position:absolute;" id="toolbar_45"> <ul></ul></span>
<span class="toolbarSub" id="toolbarSub_45"></span>
</div>
<div class="content" style="width:auto;_width:100%;" id="content_45"><div class="content_view" id="content_view_id_45" url="/page/element/MyCalendar/Iframe.jsp?ebaseid=MyCalendar&amp;eid=45&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5" style="">
    <iframe id="ifrm_myCalendar_45" name="ifrm_myCalendar_45" border="0" frameborder="no" noresize="NORESIZE" scrolling="auto" width="100%" src="../html/View.html" height="408">&lt;/ifram
    &lt;/body&gt;
&lt;/html&gt;</iframe></div>
<div style="text-align:right;" id="footer_45">
</div>
</div>
</div>
                <!---------Element263:------------->
<div class="item" id="item_263" eid="263" style="position:relative;margin-top:10px;margin-right: 0px; margin-bottom:0px; margin-left:0px;" ebaseid="29" needrefresh="true" cornertop="Right" cornertopradian="8px" cornerbottom="Right" cornerbottomradian="5px" isbeforeinit="true" isinited="true" elementload_queue_timeout_flag="true">
<div class="header" issetting="false" sharelevel="" style="width:auto;_width:100%;position:relative;display:block!important;" id="header_263">
<span class="icon" style="position:absolute;cursor:hand;" id="icon_263"><img border="0" src="../images/le_tools.png" onclick="onShowOrHideE(263)" title="收缩/展开"></span>
<span class="title" style="position:absolute;" id="title_263"></span>
<span class="toolbar" style="position:absolute;" id="toolbar_263"> <ul></ul></span>
<span class="toolbarSub" id="toolbarSub_263"></span>
</div>
<div class="content" style="width:auto;_width:100%;" id="content_263"><div class="content_view" id="content_view_id_263" url="/page/element/29/Iframe.jsp?ebaseid=29&amp;eid=263&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5" style="">
<div id="titleContainer_263" style="border: 0px; width: 100%; position: relative; overflow: hidden; display: none; background-image: url(&quot;http://192.168.1.236:8093/page/resource/userfile/image/ecology8/tabbg1_wev8.png&quot;);">

<div id="tabnavprev_263" style="position: relative; float: left; left: -5px; top: -5px; display: none;" class="picturebackhp" onclick="backMarqueeDiv7(&#39;#tabContainer_263&#39;);">&nbsp;</div>

<div id="tabContainer_263" class="tab2" style="width:100%;overflow:hidden;display:none;float:left;">
	<table height="32" width="77" cellspacing="0" cellpadding="0" border="0" style="table-layout:fixed;">
		<tbody><tr>
					<td style="word-wrap:break-word;padding-top:5px;vertical-align:top;" id="tab_263" tabid="1" class="tab2selected" onclick="loadContent(&#39;263&#39;,&#39;/page/element/compatible/IframeTabContentData.jsp&#39;,&#39;ebaseid=29&amp;eid=263&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5&amp;e71512468217308=&amp;pagetype=&amp;fieldids=&amp;fieldvalues=&amp;tabWhere=../Axure/leadertools/home.html^,^^,^100^,^220&#39;,event)">常用工具</td>

		</tr>
	</tbody></table>
</div>

    <div id="tabnavnext_263" style="position: relative; float: right; right: -5px; top: -6px; display: none;" class="picturenexthp" onclick="nextMarqueeDiv7(&#39;#tabContainer_263&#39;);">&nbsp;</div>

</div>
<div id="tabContant_263">

<iframe id="ifrm_263" name="ifrm_263" border="0" frameborder="no" noresize="NORESIZE" scrolling="auto" width="100%" height="220" src="../html/home.html"></iframe>

</div>

</div>

<div style="text-align:right;" id="footer_263">

</div>
</div>
</div>
                <!---------Element76:------------->
<div class="item" id="item_76" eid="76" style="position:relative;margin-top:10px;margin-right: 0px; margin-bottom:0px; margin-left:0px;" ebaseid="7" needrefresh="true" cornertop="Right" cornertopradian="8px" cornerbottom="Right" cornerbottomradian="5px" isbeforeinit="true" isinited="true" elementload_queue_timeout_flag="false">
<div class="header" issetting="false" sharelevel="" style="width:auto;_width:100%;position:relative;display:block!important;" id="header_76">
<span class="icon" style="position:absolute;cursor:hand;" id="icon_76"><img border="0" src="../images/le_institution.png" onclick="onShowOrHideE(76)" title="收缩/展开"></span>
<span class="title" style="position:absolute;" id="title_76"></span>
<span class="toolbar" style="position:absolute;" id="toolbar_76"> <ul></ul></span>
<span class="toolbarSub" id="toolbarSub_76"></span>
</div>
<div class="content" style="width:auto;_width:100%;" id="content_76"><div class="content_view" id="content_view_id_76" url="/page/element/7/News.jsp?ebaseid=7&amp;eid=76&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5" style="">
<style type="text/css" rel="STYLESHEET">
.picturebackhp
{
    width: 18px;
    height: 32px;
    float:left;
    background: transparent url(/page/element/Picture/resource/image/scroll_left_wev8.gif) no-repeat 0 0;
}
.picturenexthp
{
    width: 18px;
    height: 32px;
    float:left;
    background: transparent url(/page/element/Picture/resource/image/scroll_right_wev8.gif) no-repeat 0 0;
}
</style>
<div id="titleContainer_76" style="border: 0px; width: 100%; overflow: hidden; position: relative; display: none; background-image: url(&quot;http://192.168.1.236:8093/page/resource/userfile/image/ecology8/tabbg1_wev8.png&quot;);">

<div id="tabnavprev_76" style="position: relative; float: left; left: -5px; top: -5px; display: none;" class="picturebackhp" onclick="backMarqueeDiv7(&#39;#tabContainer_76&#39;);">&nbsp;</div>

<div id="tabContainer_76" class="tab2" style="width:100%;overflow:hidden;display:none;float:left;">
	<table height="32" width="77" cellspacing="0" cellpadding="0" border="0" style="table-layout:fixed;">
		<tbody><tr>


					<td style="word-wrap:break-word;padding-top:5px;vertical-align:top;" id="tab_76" tabid="1" class="tab2selected" onclick="loadContent(&#39;76&#39;,&#39;/page/element/compatible/NewsTabContentData.jsp&#39;,&#39;ebaseid=7&amp;eid=76&amp;styleid=1442224702199&amp;hpid=7&amp;subCompanyId=5&amp;e71512468217310=&amp;pagetype=&amp;fieldids=&amp;fieldvalues=&amp;tabsize=1&amp;tabWhere=2|118|0^,^1^,^None^,^0^topdoc^&#39;,event)">运营制度</td>

		</tr>
	</tbody></table>
</div>

    <div id="tabnavnext_76" style="position: relative; float: right; right: 0px; top: -6px; display: none;" class="picturenexthp" onclick="nextMarqueeDiv7(&#39;#tabContainer_76&#39;);">&nbsp;</div>
</div>

<div id="tabContant_76">
<table id="_contenttable_76" class="Econtent" width="100%">
   <tbody><tr>
	 <td width="1px"></td>
	 <td width="*" valign="top">

	 <table class="elementdatatable" width="100%">
<tbody><tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="dfgdsgsdfg"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=1156&amp;isOpenFirstAss=0&#39;,&#39;1156&#39;)"><font class="font docnamedetail">dfgdsgsdfg</font></a>
</td>
<td width="76"><font class="font">2017-11-07</font></td>
</tr>
<tr class="sparator" style="height:1px" height="1px"><td style="padding:0px" colspan="3"></td></tr>
<tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="1111111111"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=1063&amp;isOpenFirstAss=0&#39;,&#39;1063&#39;)"><font class="font docnamedetail">1111111111</font></a>
</td>
<td width="76"><font class="font">2017-10-24</font></td>
</tr>
<tr class="sparator" style="height:1px" height="1px"><td style="padding:0px" colspan="3"></td></tr>
<tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="sadsadsad"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=448&amp;isOpenFirstAss=0&#39;,&#39;448&#39;)"><font class="font docnamedetail">sadsadsad</font></a>
</td>
<td width="76"><font class="font">2017-07-31</font></td>
</tr>
<tr class="sparator" style="height:1px" height="1px"><td style="padding:0px" colspan="3"></td></tr>
<tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="2012年公司经营支出报告"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=79&amp;isOpenFirstAss=0&#39;,&#39;79&#39;)"><font class="font docnamedetail">2012年公司经营支出报告</font></a>
</td>
<td width="76"><font class="font">2015-06-24</font></td>
</tr>
<tr class="sparator" style="height:1px" height="1px"><td style="padding:0px" colspan="3"></td></tr>
<tr>
	<td width="8"></td>
<td class="docdetail" width="*" title="《招聘编制模板（正式员工）》"><a href="javascript:openFullWindowForDoc(&#39;/docs/docs/DocDsp.jsp?id=78&amp;isOpenFirstAss=0&#39;,&#39;78&#39;)"><font class="font docnamedetail">《招聘编制模板（正式员工）》</font></a>
</td>
<td width="76"><font class="font">2015-06-24</font></td>
</tr>
</tbody></table>
	</td></tr></tbody></table>

</div>


</div>

<div style="text-align:right;" id="footer_76">

</div>
</div>
</div>


			</div>
		</td>
	</tr>
</tbody></table>

		</span>
            </div>
        </td>
    </tr>
    </tbody></table>



<div id="encodeHTML" style="display:none"></div>


<link rel="stylesheet" href="../css/e8tabs_wev8.css" type="text/css">
<script src="../js/jquery.tabs_wev8.js"></script>
<script src="../js/jquery.selectbox-0.2_wev8.js"></script>
<script language="JavaScript">
    $(document).ready(function(){
        //jQuery("#Element_Container").perfectScrollbar();

        $(".ehover").bind("mouseover",function(){
            $(this).addClass("ehoverBg")
        })
        $(".ehover").bind("mouseout",function(){
            $(this).removeClass("ehoverBg")
        });
    });

    try{
        parent.defaultHpid='7';
    }catch(e){}


    function elementsIsLoad() {
        var initedLength = $(".item[isinited!=true]").length;
        if (initedLength == 0) {
            if (parent.portalIframeLoadingOver) {
                parent.portalIframeLoadingOver('7', $("#Container").height());
            }
        }
    }

    function color_onchange(id,obj){
        try{
            if(obj.value !='000000'){
                $("#"+id).attr("checked",true);
            }
        }catch(e){}
    }

    /*修改相应元素位置 到到相应的元素下去*/
    function fixedPosition(eid){
        //jQuery("#spanContent").height(document.body.scrollHeight+30);
        var oFrm=(function(p,t){

            while(p!=t){
                if(t.document.getElementById("mainFrame")!=null)
                    return t.document.getElementById("mainFrame");
                else
                    t=p;p=p.parent;
            }
            return t.document.getElementById("mainFrame");
        })(window.parent,window);
        if(true){ //从门户过的数据需要刷新页面宽度
            try{

                if(parseInt(oFrm.style.height)<parseInt(document.body.scrollHeight)) {
                    oFrm.style.height=document.body.scrollHeight+"px";
                } else {
                    oFrm.style.height=document.body.scrollHeight+"px";
                }
            } catch(e){
                log(e)
            }
        }else{

            if(false){
                oFrm?oFrm.style.height="100%":"";
            }else{
                oFrm?oFrm.style.height="500px":"";
            }

        }

        //jQuery("#Element_Container").perfectScrollbar('update');
    }
    function toggleELib(obj){

        if($('#spanELib').is(":hidden")) {
            $('#spanELib').show();
            $('#spanELib').css("margin","10 0 0 10");
            $('#spanELib').css("width","150px");
            $('#spanContent').css("width",document.body.clientWidth-160);
            $(window.parent.document).find("#btnElib").attr("value","隐藏元素库");
            if(typeof(obj) != "undefined")obj.lastChild.innerHTML="隐藏元素库";
        } else {
            $('#spanELib').hide();
            $('#spanELib').css("width","0%");
            $(window.parent.document).find("#btnElib").attr("value","显示元素库");
            if(typeof(obj) != "undefined")obj.lastChild.innerHTML="显示元素库";
        }
    }

    //=====================================协同开始

    var pbodyover;
    function showSynParamSetting2Wf(eid,tabid,ebaseid){
        var ePerpageValue=5;
        var sharelevel=$("input[name=_esharelevel_"+eid+"]").val();
        var dlg=new window.top.Dialog();//定义Dialog对象
        dlg.Model=true;
        dlg.Width=460;//定义长度
        dlg.Height=240;
        dlg.URL="/synergy/maintenance/SynergyElementSet4Wf.jsp?pagetype=&eid="+eid+"&ispagedeal=&ebaseid="+ebaseid+"&tabid="+tabid+"&esharelevel="+sharelevel+"&subCompanyId=5&hpid=7&wfid=0&nodeid=0";
        dlg.Title="流程参数设置";
        dlg.callbackfun=function(datas){
            if(datas){
                if(datas != ""){
                    datas = "SynergyParamXML:'"+datas+"'";
                }
                datas = "var postObj = {"+datas+"}";
                eval(datas)
                $.post('/synergy/browser/operationCommon.jsp?eid='+eid+'&ebaseid='+ebaseid+'&tabid='+tabid+'&esharelevel='+sharelevel+'&ePerpageValue='+ePerpageValue+'&hpid=7', postObj,
                    function(data){
                        if($.trim(data)=="") 	{
                            //$("#setting_"+eid).hide();
                            //$("#setting_"+eid).remove();
                            if(ebaseid=="news"||parseInt(ebaseid)==7||parseInt(ebaseid)==1||parseInt(ebaseid)==29){
                                $.post('/page/element/compatible/NewsOperate.jsp',{method:'submit',eid:eid},function(data){
                                    if($.trim(data)==""){
                                        //$("#item_"+eid).attr('needRefresh','true')
                                        //$("#item_"+eid).trigger("reload");
                                    }
                                });
                            }else{
                                //$("#item_"+eid).attr('needRefresh','true')
                                //$("#item_"+eid).trigger("reload");
                            }
                        }
                    }
                );
            }
            dlg.close();
        }
        dlg.show();
    }
    function doWorkflowEleSet(eid,ebaseid){
        try{
            //var formAction =$("#dialogIframe_"+eid).contents().find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").attr("action")
            var formAction ="/homepage/element/setting/WorkflowCenterOpration.jsp";
            var orders = getTabOrders(eid);
            $.post(formAction,{method:'submit',eid:eid,orders:orders},function(data){
                doUseSetting(eid,ebaseid);
            });
        }catch(e){}
    }

    var randomValue;
        var settingUrl="/page/element/setting.jsp?pagetype=&eid="+eid+"&ebaseid="+ebaseid+"&hpid=7&subcompanyid=5";
        $.post(settingUrl, null,
            function(data){
                if($.trim(data)!="") 	{
                    $("#setting_"+eid).hide();
                    $("#setting_"+eid).remove();
                    $("#content_"+eid).prepend($.trim(data))
                    //$("#setting_"+eid+" .weavertabs").weavertabs({selected:0});

                    $(".tabs").PortalTabs({
                        getLine:1,
                        topHeight:40
                    });
                    $(".tab_box").height(0);
                    $("#setting_"+eid).show();
                    $("#weavertabs-content-"+eid).show();

                    var urlContent=$.trim($("#weavertabs-content-"+eid).attr("url")).replace(/&amp;/g,"&");
                    var urlStyle=$.trim($("#weavertabs-style-"+eid).attr("url")).replace(/&amp;/g,"&");
                    var urlShare=$.trim($("#weavertabs-share-"+eid).attr("url")).replace(/&amp;/g,"&");

                    //alert(document.getElementById("weavertabs-content-"+eid));

                    if(urlContent!="") {
                        if(ebaseid==7||ebaseid==8||ebaseid==1||ebaseid=='news'||ebaseid==29){
                            //randomValue =Math.round(Math.random()*(100-1)+1)
                            randomValue = new Date().getTime();
                            $("#setting_"+eid).attr("randomValue",randomValue);
                        }
                        urlContent = urlContent+"&random="+randomValue;

                        $("#weavertabs-content-"+eid).html("")
                        $("#weavertabs-content-"+eid).html("<img src=/images/loading2_wev8.gif> 处理中...");
                        $("#weavertabs-content-"+eid).load(urlContent,{},function(){
                            $("#sync_datacenter_"+eid).tzCheckbox({labels:['','']});
                            $(".filetree").filetree();
                            $(".vtip").simpletooltip();
                            fixedPosition(eid);
                            jscolor.init();
                            initLayout();
                        });
                    }
                    if(urlStyle!="") $("#weavertabs-style-"+eid).load(urlStyle,{},function(){

                        var checkimg=$("#eLogo_"+eid).attr("value");
                        $("#weavertabs-style-"+eid+" .filetree").filetree({"file":checkimg});
                        initLayout();
                        $("#weavertabs-style-"+eid).hide();

                    });

                    if(urlShare!="") $("#weavertabs-share-"+eid).load(urlShare,{},function(){
                        $("#weavertabs-share-"+eid).hide();
                    });
                }

            });
    }
    function onNoUseSetting(eid,ebaseid){
        if(ebaseid=="news"||parseInt(ebaseid)==7||parseInt(ebaseid)==1 || ebaseid=="reportForm" ||parseInt(ebaseid)==29){
            $.post('/page/element/compatible/NewsOperate.jsp',{method:'cancel',eid:eid},function(data){
            });
        }else if(parseInt(ebaseid)==8){
            var formAction ="/homepage/element/setting/WorkflowCenterOpration.jsp";
            $.ajax({
                url :formAction,
                data:{method:'cancel',eid:eid},
                cache : false,
                async : true,
                type : "post",
                dataType : 'json',
                success : function (result){

                }
            });
        }
        //外部数据元素有所不同需要刷新一次
        if(ebaseid=="OutData") {
            $("#item_"+eid).attr('needRefresh','true')
            $("#item_"+eid).trigger("reload");
        }
        $("#setting_"+eid).hide();
        $("#setting_"+eid).remove();
        fixedPosition(eid);
    }

    function doUseSetting(eid,ebaseid){

        /*对知识订阅元素进行特殊处理*/
        if(ebaseid==34){
            var begin = document.getElementById("begindate_"+eid).value;
            var end = document.getElementById("enddate_"+eid).value;
            if(begin != "" && end != ""){
                if(begin > end){
                    alert("结束时间不能在开始时间之前");
                    return;
                }
            }
        }
        //common部分处理
        var ePerpageValue=5;
        var eShowMoulde='0';
        var eLinkmodeValue ='';
        var esharelevel = '';
        try{
            if(document.getElementById("_ePerpage_"+eid)!=null){
                ePerpageValue=$("#_ePerpage_"+eid).val();
            }
            if(document.getElementById("_eShowMoulde_"+eid)!=null){
                eShowMoulde=document.getElementById("_eShowMoulde_"+eid).value;
            }
            if(document.getElementById("_eLinkmode_"+eid)!=null){
                eLinkmodeValue=$("#_eLinkmode_"+eid).val();
            }

            esharelevel=$("input[name=_esharelevel_"+eid+"]").val();
        } catch(e){
        }
        var eFieldsVale="";
        var chkFields=document.getElementsByName("_chkField_"+eid);
        if (chkFields!=null){
            for(var i=0;i<chkFields.length;i++){
                var chkField=chkFields[i];
                if(chkField.checked) eFieldsVale+=chkField.value+",";
            }
            if(eFieldsVale!="") eFieldsVale=eFieldsVale.substring(0,eFieldsVale.length-1);
        }
        var imsgSizeStr ="";
        if($("input[name=_imgWidth"+eid+"]").val()){

            var imgWidth = $("input[name=_imgWidth"+eid+"]").val();
            var imgHeight = $("input[name=_imgHeight"+eid+"]").val();

            if(imgWidth.replace(/(^\s*)|(\s*$)/g, "") == ""){
                imgWidth = "0";
            }
            if(imgHeight.replace(/(^\s*)|(\s*$)/g, "")==""){
                imgHeight = "0";
            }
            var imgSize = imgWidth+"*"+imgHeight;

            imsgSizeStr = "imgSize_"+$("input[name=_imgWidth"+eid+"").attr("basefield");
        }

        var imgType=0;
        var imgSrc = "";
        if(document.getElementById("_imgType"+eid)!=null){
            imgType=document.getElementById("_imgType"+eid).value;

            if(imgType==1){
                imgSrc = $("#_imgsrc"+eid).val();
            }
        }

        //得到上传时的字数标准

        var newstemplateStr = "";
        if(document.getElementById("_newstemplate"+eid)!=null){
            newstemplateStr = document.getElementById("_newstemplate"+eid).value
        }
        var eTitleValue="";
        var whereKeyStr="";
        if(esharelevel=="2"){
            var eTitleValue=document.getElementById("_eTitel_"+eid).value;
            var _whereKeyObjs=document.getElementsByName("_whereKey_"+eid);
            if(eTitleValue.indexOf('%')!=-1) {
                //alert("标题中不能包括特殊字符'%'");
                //return;
            }
            //alert(escape(eTitleValue));
            $("#title_"+eid).html(eTitleValue.replace(/ /gi,"&nbsp;"));
            $("#title_"+eid).append("<span id='count_"+eid+"'></span>");
            eTitleValue = eTitleValue.replace(/\\/g,"\\\\");
            eTitleValue = eTitleValue.replace(/'/g,"\\'");
            eTitleValue = eTitleValue.replace(/"/g,"\\\"");
            if(ebaseid == 'notice'){
                onchanges(eid);
            }
            if(ebaseid !== "reportForm"){
                for(var k=0;k<_whereKeyObjs.length;k++){
                    var _whereKeyObj=_whereKeyObjs[k];
                    if(_whereKeyObj.tagName=="INPUT" && _whereKeyObj.type=="checkbox" &&! _whereKeyObj.checked) continue;
                    if(ebaseid=='reportForm'){
                        if(_whereKeyObj.tagName=="INPUT" && _whereKeyObj.type=="radio" &&! _whereKeyObj.checked) continue;
                    }
                    whereKeyStr+=_whereKeyObj.value+"^,^";
                }
            }
        }
        if(whereKeyStr!="") whereKeyStr=whereKeyStr.substring(0,whereKeyStr.length-3);
        whereKeyStr = whereKeyStr.replace(/'/g,"\\'");
        //当日计划特殊处理
        if(ebaseid == 15){
            whereKeyStr=$("#_whereKey_"+eid).val();
        }

        //仅对多文档中心元素进行此处理，修正td21552
        if(whereKeyStr != null && $.trim(whereKeyStr) != ""&&ebaseid=='17'){
            var whereStr = $.trim(whereKeyStr).split('^,^');
            if(whereStr[1] != null && whereStr[1] != "" && whereStr[1].length != 0) {
                $("#more_"+eid).attr("href","javascript:openFullWindowForXtable('/page/element/compatible/more.jsp?ebaseid="+ebaseid+"&eid="+eid+"')");
                $("#more_"+eid).attr("morehref","/page/element/compatible/more.jsp?ebaseid="+ebaseid+"&eid="+eid);
            }else{
                $("#more_"+eid).attr("href","#");
                $("#more_"+eid).attr("morehref","");
            }
        }


        var scolltype = "";
        if(document.getElementsByName("_scolltype"+eid).length>0){
            scolltype=document.getElementsByName("_scolltype"+eid)[0].value;
            //whereKeyStr+="^,^"+scolltype;

        }
        var eLogo=$("#eLogo_"+eid).val();
        var eStyleid=$("#eStyleid_"+eid).val();
        var eHeight=$("#eHeight_"+eid).val();
        var eMarginTop=$("#eMarginTop_"+eid).val();
        var eMarginBottom=$("#eMarginBottom_"+eid).val();
        var eMarginLeft=$("#eMarginLeft_"+eid).val();
        var eMarginRight=$("#eMarginRight_"+eid).val();
        var eIsNew="";
        var eIsBold="";
        var eIsRgb="";
        var eNewColor="";
        var eIsLean="";

        if($("#isnew_"+eid).attr("checked")==true){
            eIsNew=$("#isnew_"+eid).val();
        }
        if($("#isbold_"+eid).attr("checked")==true){
            eIsBold=$("#isbold_"+eid).val();
        }
        if($("#isrgb_"+eid).attr("checked")==true){
            eIsRgb=$("#isrgb_"+eid).val();
        }
        if($("#islean_"+eid).attr("checked")==true){
            eIsLean=$("#islean_"+eid).val();
        }
        var eNewColor="#"+$("#newcolor_"+eid).val();

        //相关的共享设置部分
        var operationurl=$.trim($("#setting_"+eid).attr("operationurl")).replace(/&amp;/g,"&");
        //alert(eid)
        var postStr = "eid:'"+eid+"',eShowMoulde:'"+eShowMoulde+"',ebaseid:'"+ebaseid+"',eTitleValue:'"+eTitleValue+"',ePerpageValue:'"+ePerpageValue+"',eLinkmodeValue:'"+eLinkmodeValue+"',";
        postStr	+="eFieldsVale:'"+eFieldsVale+"',imgSizeStr:'"+imgSize+"',whereKeyStr:'"+whereKeyStr+"',esharelevel:'"+esharelevel+"',hpid:'"+'7'+"',subCompanyId:'"+'5'+"',";
        postStr	+="eLogo:'"+eLogo+"',eStyleid:'"+eStyleid+"',eHeight:'"+eHeight+"',newstemplate:'"+newstemplateStr+"',imgType:'"+imgType+"',imgSrc:'"+imgSrc+"',eScrollType:'"+scolltype+"',"
        postStr	+="eMarginTop:'"+eMarginTop+"',eMarginBottom:'"+eMarginBottom+"',eMarginLeft:'"+eMarginLeft+"',eMarginRight:'"+eMarginRight+"',isnew:'"+eIsNew+"',isbold:'"+eIsBold+"',isrgb:'"+eIsRgb+"',islean:'"+eIsLean+"',newcolor:'"+eNewColor+"'";

        /*对外部数据元素的内容进行特殊处理*/
        if(ebaseid=="OutData") {
            var nums = $("#nums_"+eid).val();
            postStr = "eid:'"+eid+"',eShowMoulde:'"+eShowMoulde+"',ebaseid:'"+ebaseid+"',eTitleValue:'"+eTitleValue+"',ePerpageValue:'"+nums+"',eLinkmodeValue:'"+eLinkmodeValue+"',";
            postStr	+="eFieldsVale:'"+eFieldsVale+"',imgSizeStr:'"+imgSize+"',whereKeyStr:'"+whereKeyStr+"',esharelevel:'"+esharelevel+"',hpid:'"+'7'+"',subCompanyId:'"+'5'+"',";
            postStr	+="eLogo:'"+eLogo+"',eStyleid:'"+eStyleid+"',eHeight:'"+eHeight+"',newstemplate:'"+newstemplateStr+"',imgType:'"+imgType+"',imgSrc:'"+imgSrc+"',eScrollType:'"+scolltype+"',"
            postStr	+="eMarginTop:'"+eMarginTop+"',eMarginBottom:'"+eMarginBottom+"',eMarginLeft:'"+eMarginLeft+"',eMarginRight:'"+eMarginRight+"',isnew:'"+eIsNew+"',isbold:'"+eIsBold+"',isrgb:'"+eIsRgb+"',islean:'"+eIsLean+"',newcolor:'"+eNewColor+"'";
            postStr +=",nums:'"+nums+"'";

        }
        var wordcountStr="";
        var _wordcountObjs=document.getElementsByName("_wordcount_"+eid);

        for(var j=0;j<_wordcountObjs.length;j++){
            var wordcountObj=_wordcountObjs[j];
            var basefield=$(wordcountObj).attr("basefield");
            wordcountStr+="&wordcount_"+basefield+"="+wordcountObj.value;
            postStr+=",wordcount_"+basefield+":'"+wordcountObj.value+"'";
        }


        var custformitem=$("#setting_form_"+eid);
        if(custformitem.length===0  &&  (ebaseid==='DataCenter' || ebaseid==='searchengine' || ebaseid==='news' || ebaseid==='menu' || ebaseid==='Flash' || ebaseid==='notice' || ebaseid==='picture' || ebaseid==='scratchpad' || ebaseid==='weather' || ebaseid==='favourite' || ebaseid==='video' ||  ebaseid==='Slide'  || ebaseid==='audio'||ebaseid==='jobsinfo'||ebaseid==='addwf'||ebaseid==='outterSys')){
            custformitem=$("#weavertabs-content-"+eid);
            if(ebaseid==='DataCenter' || ebaseid==='picture' || ebaseid==='weather' || ebaseid==='news' || ebaseid==='menu' || ebaseid==='Flash' || ebaseid==='favourite' || ebaseid==='video' || ebaseid==='Slide' || ebaseid==='audio'||ebaseid==='jobsinfo'||ebaseid==='addwf'||ebaseid==='outterSys'){
                var pitem=custformitem.parent();
                var pitem=custformitem.parent();
                custformitem=$("<form id='#setting_form_"+eid+"'></form>").append(custformitem);
                pitem.append(custformitem);
            }else
                custformitem=$("<form></form>").append(custformitem.clone());
        }

        //自定义表单参数处理
        var newstrform = custformitem.serialize();
        //alert(ebaseid);
        //alert(custformitem.html());
        var paramstr=newstrform.split("&");
        var newitem={};

        var parammap;
        for(var i=0;i<paramstr.length;i++){
            parammap=paramstr[i].split("=");
            newitem[parammap[0]]=decodeURIComponent(parammap[1]).replace(/\+/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">");
        }

        var newstr="";
        if(ebaseid == "weather") {
            var weatherWidth;
            var wWidth = $("#content_view_id_"+eid).width();
            if(newstr != null && newstr != "" && newstr.length != 0) {
                var weatherWidth = newstr.substring(newstr.lastIndexOf("'")+1);
                var reg=new RegExp("[\+\]","g");
                weatherWidth=weatherWidth.replace(reg,"");
                if(weatherWidth == null ||
                    weatherWidth == "" ||
                    isNaN(weatherWidth) ||
                    parseFloat(weatherWidth) > parseFloat(wWidth) ||
                    parseFloat(weatherWidth) <= 0) {
                    var lNewStr = newstr.substring(0,newstr.lastIndexOf("'")+1);
                    newstr = lNewStr+wWidth;
                }else{
                    var lNewStr = newstr.substring(0,newstr.lastIndexOf("'")+1);
                    newstr = lNewStr+weatherWidth;
                }
            }
        }else if(ebaseid=="FormModeCustomSearch"){
            var pageform = $("#setting_form_"+eid);

            var formmode_esharelevel = $("[name='_esharelevel_"+eid+"']").val();
            var formmode_reportId = $("#reportId_"+eid).val();
            var formmode_fields = $("#fields_"+eid).val();
            var formmode_fieldsWidth = $("#fieldsWidth_"+eid).val();

            newstr="_esharelevel_"+eid+":'"+formmode_esharelevel+"',"
                +"reportId_"+eid+":'"+formmode_reportId+"',"
                +"fields_"+eid+":'"+formmode_fields+"',"
                +"fieldsWidth_"+eid+":'"+formmode_fieldsWidth+"";
        }

        if(newstr!=""){
            postStr = postStr+","+newstr+"'";
        }
        //alert(encodeURI(postStr))
        postStr = "var postObj = {"+postStr+"}";
        eval(postStr);

        //添加表单参数
        for(var item in newitem){
            postObj[item]=newitem[item];
        }
        var orderStr = getTabOrders(eid);
        $.post(operationurl, postObj,
            function(data){
                if($.trim(data)=="") 	{
                    $("#setting_"+eid).hide();
                    $("#setting_"+eid).html('');
                    $("#setting_"+eid).remove();
                    if(ebaseid=="reportForm"||ebaseid=="news"||parseInt(ebaseid)==7||parseInt(ebaseid)==1||parseInt(ebaseid)==29){
                        $.post('/page/element/compatible/NewsOperate.jsp',{method:'submit',eid:eid,orders:orderStr},function(data){
                            if($.trim(data)==""){
                                $("#item_"+eid).attr('needRefresh','true');
                                $("#item_"+eid).trigger("reload");
                            }
                        });
                    }else{
                        $("#item_"+eid).attr('needRefresh','true');
                        $("#item_"+eid).trigger("reload");
                    }
                }else{
                    data = $.parseJSON($.trim(data));
                    if(data&&data.__result__===false){
                        top.Dialog.alert(data.__msg__);
                    }
                }
            }
        );
        if(window.frames["eShareIframe_"+eid]&&esharelevel=="2"){
            window.frames["eShareIframe_"+eid].document?window.frames["eShareIframe_"+eid].document.getElementById("frmAdd_"+eid).submit():"";
        }

        if(ebaseid == "menu") {
            setTimeout(function rload(){
                location.reload();
            },200);
        }
        fixedPosition(eid);
    }

    function onUseSetting(eid,ebaseid){
        if($("#reportId_"+eid).val()==""&&ebaseid=="FormModeCustomSearch"){
            Dialog.alert("必要信息不完整！",function(){});//必要信息不完整！
            return;
        }
        if(ebaseid==8) { /*对流程中心元素进行特殊处理*/
            doWorkflowEleSet(eid,ebaseid);
            //return;
        }else{
            doUseSetting(eid,ebaseid);
        }
    }



    function onLockOrUn(eid,ebaseid,obj){

        if(confirm("此操作可能需要较长时间，是否继续？")){

            divInfo.style.display='inline';
            var url;


            if(jQuery(obj).attr("status")=="unlocked"){
                url="/homepage/element/EsettingOperate.jsp?method=locked&eid="+eid+"&hpid=7&subCompanyId=5";
            } else {
                url="/homepage/element/EsettingOperate.jsp?method=unlocked&eid="+eid+"&hpid=7&subCompanyId=5";
            }
            log(url)
            $.get(url,{},function(data){
                log($.trim(data));

                divInfo.style.display='none';
                if(jQuery(obj).attr("status")=="unlocked"){
                    jQuery(obj).attr("status","locked");
                } else {
                    jQuery(obj).attr("status","unlocked");
                }
                //
                jQuery(obj).children(":first").attr("src",$.trim(data));
            });

        }
    }

    function MoveEData(srcFlag,targetFlag){
        var srcItemEids="";
        $(".group[areaflag="+srcFlag+"]>.item").each(function(i){
            if(this.className=="item")	{
                srcItemEids+=$(this).attr("eid")+",";
            }
        })

        var targetItemEids="";
        $(".group[areaflag="+targetFlag+"]>.item").each(function(i){
            if(this.className=="item")	{
                targetItemEids+=$(this).attr("eid")+",";
            }
        })
        //log("src"+srcFlag+"-"+srcItemEids);
        //log("target:"+targetFlag+"-"+targetItemEids);

        var url="/homepage/element/EsettingOperate.jsp?method=editLayout&hpid=7&subCompanyId=5&srcFlag="+srcFlag+"&targetFlag="+targetFlag+"&srcStr="+srcItemEids+"&targetStr="+targetItemEids;
        GetContent(divInfo,url,false);

    }
    function   doSynize(obj){
        window.top.Dialog.confirm('此操作可能需要较长时间，是否继续？',function(){
            //obj.disabled=true;
            divInfo.style.display='inline';
            var code="divInfo.style.display=\"none\";";
            var url='/homepage/maint/HomepageMaintOperate.jsp?method=synihp&subCompanyId=5&hpid=7'
            GetContentForSynize(divInfo,url,false,code);
        });
    }
    function   doSynizeNormal(obj){
        var isNeedRefresh=1;

        window.top.Dialog.confirm('此操作可能需要较长时间，是否继续？',function(){
            //obj.disabled=true;
            divInfo.style.display='inline';
            var code="divInfo.style.display=\"none\";";
            var url='/homepage/maint/HomepageMaintOperate.jsp?method=synihpnormal&subCompanyId=5&hpid=7'
            GetContentForSynize(divInfo,url,false,code,isNeedRefresh);
        });
    }
    function openMaginze(obj,url,linkmode){
        url=url+obj.value;
        if(linkmode=="1") window.location=url;
        if(linkmode=="2") openFullWindowForXtable(url);
    }

    //菜单
    function onMenuDivClick(hpid,subCompanyId){
        window.location="/homepage/Homepage.jsp?hpid="+hpid+"&subCompanyId="+subCompanyId+"&isfromportal=1&isfromhp=0"
    }


    /**
     添加Tab页
     */
    function addTab(eid,url,ebaseid){

        var tabCount = $("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).attr("tabCount");
        tabCount = parseInt(tabCount);
        tabCount++;

        var url = $("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).attr("url");
        url+="&tabId="+tabCount
        showTabDailog(eid,'add',tabCount,url,ebaseid)
    }


    /**
     删除Tab页
     */
    function deleTab(eid,tabId,ebaseid){
        var formAction="";
        if(parseInt(ebaseid)==8){
            formAction ="/homepage/element/setting/WorkflowCenterOpration.jsp";
        }else if(ebaseid=="reportForm"|| ebaseid=="news"||parseInt(ebaseid)==7||parseInt(ebaseid)==1||parseInt(ebaseid)==29){
            formAction ="/page/element/compatible/NewsOperate.jsp";
        } else if(ebaseid=="OutData") {
            if(confirm("确认删除吗")) {
                formAction ="/page/element/OutData/tabOperation.jsp?type=";
            } else {
                return;
            }
        }
        var para = {method:'delete',eid:eid,tabId:tabId};
        $.post(formAction,para,function(data){
            if($.trim(data)==""){
                try{
                    var tabArr = tabId.split(";");
                    for(var i=0; i <tabArr.length; i ++){
                        $("#setting_"+eid).find("#tab_"+eid+"_"+tabArr[i]).parent().parent().remove();
                    }
                }catch(e){
                    $("#setting_"+eid).find("#tab_"+eid+"_"+tabId).parent().parent().remove();
                }

            }
        });

    }
    function batchDeleTab(eid,ebaseid){
        var	tableId= 'tabSetting_';
//	var rows = [];
        var j=0;
        var tabIds = "";
        $("#"+tableId+eid+" tr").find('[name=checkrow_'+eid+']').each(function(i){
            if($(this).attr('checked')){
                //	rows[j++] = $(this).parent().parent();
                j++;
                tabIds += $(this).parent().parent().find('[tabId]').attr('tabId')+";";
            }
        })
        if(j == 0){
            top.Dialog.alert('请至少选择一条记录。');
        }else{
            top.Dialog.confirm('确定要删除吗?',function(){
                tabIds = tabIds.substring(0,tabIds.length-1);
                //if('reportForm' == ebaseid){
                //	var tabArr = tabIds.split(";");
                //	for(var i=0; i <tabArr.length; i ++){
                //		$("#setting_"+eid).find("#tab_"+eid+"_"+tabArr[i]).parent().parent().remove();
                //	}
                //}else{
                deleTab(eid,tabIds,ebaseid);
                //}
                $('#checkAll_'+eid).attr("checked",false);
            });
        }
    }
    function checkAllRows(eid,tableId){
        if(tableId == null){
            tableId= 'tabSetting_';
        }
        var ischeck = $('#checkAll_'+eid).attr("checked");
        $("#"+tableId+eid+" tr").find('[name=checkrow_'+eid+']').each(function(i){
            $(this).attr('checked',ischeck);
        })
    }
    /**
     编辑Tab页
     */
    function editTab(eid,tabId,ebaseid){

        var url = $("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).attr("url");
        var tabTitle = $("#tab_"+eid+"_"+tabId).attr("tabTitle");

        tabTitle = encodeURIComponent(encodeURIComponent(tabTitle));
        url+="&tabId="+tabId+"&tabTitle="+tabTitle;
        if(ebaseid=="news" || parseInt(ebaseid)==7||parseInt(ebaseid)==1||parseInt(ebaseid)==29){
            var tabWhere = $("#tab_"+eid+"_"+tabId).attr("tabWhere");
            url+="&value="+tabWhere;
        }else if(ebaseid=="reportForm"){
        }else{
            var showCopy = $("#tab_"+eid+"_"+tabId).attr("showCopy");
            var countFlag = $("#tab_"+eid+"_"+tabId).attr("countFlag");
            url+="&showCopy="+showCopy+"&countFlag="+countFlag;
        }
        /*if(parseInt(ebaseid)==7 || parseInt(ebaseid)==29){
		var orderNum = $("#tab_"+eid+"_"+tabId).attr("orderNum");
		url+= "&orderNum="+orderNum;
	}*/
        showTabDailog(eid,"edit",tabId,url,ebaseid)
    }

    /**
     打开对话框
     */
    var tab_dialog ;
    function showTabDailog(eid,method,tabId,url,ebaseid){
        var whereKeyStr="";
        var showCopy="1";
        var countFlag="1";
        // 更换弹出窗口为zDialog
        if(true){
            tab_dialog = new window.top.Dialog();
            tab_dialog.currentWindow = window;   //传入当前window
            tab_dialog.Width = 630;
            tab_dialog.Height = 500;
            tab_dialog.Modal = true;
            tab_dialog.Title = "内容设置";
            tab_dialog.URL = url+"&ebaseid="+ebaseid+"&method="+method;
            tab_dialog.show();
            return;
        }
        /*try{
		$("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).attr("name","dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue"));

		$("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).attr("src",url);
		$("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).bgiframe();
		//$("#tabDiv_"+eid).dialog('destroy');
		$("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).dialog({
				id:tabId,
				bgiframe: true,
				autoOpen: false,
				height: 630,
				width:450,
				draggable:true,
				modal: true,
				buttons: {
					'取消': function() {
						$(this).dialog('destroy');
					},
					'确定': function() {
						// 准备Tab页条件数据
						var formParams ={};
						var formAction ="";
						var tabTitle ="";
						var displayTitle="";
						if(parseInt(ebaseid)==8){
							$("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#ifrmViewType_"+eid).contents().find("#btnSave").trigger("click")
							formAction =$("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").attr("action")
							tabTitle = $("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#tabTitle_"+eid).attr("value")
							displayTitle = $("#encodeHTML").text(tabTitle).html();
							$("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#tabTitle").attr("value",tabTitle);
							$("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#tabId").attr("value",tabId);
							$("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#method").attr("value",method);
							formParams = $("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").serializeArray();
							if($("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#showCopy_"+eid).attr("checked")){
								showCopy = "1"
							}else{
								showCopy = "0"
							}
							$("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#showCopy").attr("value",showCopy);
							formAction ="/homepage/element/setting/"+formAction;
						}else if(ebaseid=="news" || parseInt(ebaseid)==7||parseInt(ebaseid)==1||parseInt(ebaseid)==29){
							formAction ="/page/element/compatible/NewsOperate.jsp";
							tabTitle = $("#dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).contents().find("#tabTitle_"+eid).attr("value")
							displayTitle = $("#encodeHTML").text(tabTitle).html();

							whereKeyStr = window.frames["dialogIframe_"+eid+"_"+$("#setting_"+eid).attr("randomValue")].getNewsSettingString(eid);

							formParams ={eid:eid,tabId:tabId,tabTitle:tabTitle,tabWhere:whereKeyStr,method:method};
						}
						if(tabTitle==''){
							alert('必要信息不完整！')
							return false;
						}
						//alert(formAction)
						$.post(formAction,formParams,function(data){
							//alert(data)
							if($.trim(data)==""){
									if(method=='add'){
										$("#tabSetting_"+eid+">tbody").append("<TR><TD><span id = tab_"+eid+"_"+tabId+" tabId='"+tabId+"' tabTitle='' tabWhere='"+whereKeyStr+"' showCopy='"+showCopy+"'></span></TD><TD width=100 lign='right'><a href='javascript:deleTab("+eid+","+tabId+",\""+ebaseid+"\")'>删除</a> &nbsp;&nbsp; <a href='javascript:editTab("+eid+","+tabId+",\""+ebaseid+"\")'>设置</a></TD></TR>")
										$("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).attr("tabCount",tabId);
										$("#tab_"+eid+"_"+tabId).html(displayTitle);
										$("#tab_"+eid+"_"+tabId).attr("tabTitle",tabTitle);
									}else{
										$("#tab_"+eid+"_"+tabId).html(displayTitle);
										$("#tab_"+eid+"_"+tabId).attr("tabTitle",tabTitle);
										$("#tab_"+eid+"_"+tabId).attr("showCopy",showCopy);
										$("#tab_"+eid+"_"+tabId).attr("tabWhere",whereKeyStr);
									}
									$("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).dialog('close');
					   		  } else {
					   		  		$("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).dialog('close');
					   		  }
						});
					}
				},

				close: function() {
					$("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).dialog('destroy');

				}
			});
			$("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).dialog('open');
			$("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).height(373);
		}catch(e){
			alert(e.message)
		}*/
    }
    function registerDragEvent(tableId,eid) {
        var fixHelper = function(e, ui) {
            ui.children().each(function() {
                $(this).width($(this).width()); // 在拖动时，拖动行的cell（单元格）宽度会发生改变。在这里做了处理就没问题了

                $(this).height($(this).height());
            });
            return ui;
        };

        var copyTR = null;
        var startIdx = 0;

        var idStr = "#"+tableId+eid;

        jQuery(idStr + " tbody tr").bind("mousedown", function(e) {
            copyTR = jQuery(this).next("tr.Spacing");
        });

        jQuery(idStr + " tbody").sortable({ // 这里是talbe tbody，绑定 了sortable
            helper: fixHelper, // 调用fixHelper
            axis: "y",
            start: function(e, ui) {
                ui.helper.addClass("e8_hover_tr") // 拖动时的行，要用ui.helper
                if(ui.item.hasClass("notMove")) {
                    e.stopPropagation && e.stopPropagation();
                    e.cancelBubble = true;
                }
                if(copyTR) {
                    copyTR.hide();
                }
                startIdx = ui.item.get(0).rowIndex;
                return ui;
            },
            stop: function(e, ui) {
                ui.item.removeClass("e8_hover_tr"); // 释放鼠标时，要用ui.item才是释放的行
                if(ui.item.get(0).rowIndex < 1) { // 不能拖动到表头上方

                    if(copyTR) {
                        copyTR.show();
                    }
                    return false;
                }
                if(copyTR) {
                    /* if(ui.item.get(0).rowIndex > startIdx) {
	        	  	ui.item.before(copyTR.clone().show());
				}else {
	        	  	ui.item.after(copyTR.clone().show());
				} */
                    if(ui.item.prev("tr").attr("class") == "Spacing") {
                        ui.item.after(copyTR.clone().show());
                    }else {
                        ui.item.before(copyTR.clone().show());
                    }
                    copyTR.remove();
                    copyTR = null;
                }
                return ui;
            }
        });
    }

    function getTabOrders(eid,elementId){
        var str = "";
        if(elementId == null){
            elementId= 'tabSetting_';
        }
        $("#"+elementId+eid+" tr").find('span[orderNum]').each(function(i){
            $(this).attr('orderNum',i);
            str += $(this).attr('tabId') +"_"+i+";";
        })
        return str.substring(0,str.length-1);
    }

    function doTabSave(eid,ebaseid,tabId,method){
        // 准备Tab页条件数据
        var tabDocument = tab_dialog.innerDoc
        var tabWindow = tab_dialog.innerWin
        var whereKeyStr="";
        var showCopy="1";
        var countFlag="1";
        var formParams ={};
        var formAction ="";
        var tabTitle ="";
        var orderNum = "0";
        if(method=='add'){
            orderNum = $("#tabSetting_"+eid).length;
        }else{
            orderNum = $("#tab_"+eid+"_"+tabId).attr("orderNum");
        }

        var displayTitle="";
        if(parseInt(ebaseid)==8){
            $(tabDocument).find("#ifrmViewType_"+eid).contents().find("#btnSave").trigger("click")
            formAction =$(tabDocument).find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").attr("action")
            tabTitle = $(tabDocument).find("#tabTitle_"+eid).attr("value")
            //	orderNum = $(tabDocument).find("#orderNum_"+eid).attr("value")
            displayTitle = $("#encodeHTML").text(tabTitle).html();
            $(tabDocument).find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#tabTitle").attr("value",tabTitle);
            $(tabDocument).find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#tabId").attr("value",tabId);
            $(tabDocument).find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#method").attr("value",method);
            //	$(tabDocument).find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#orderNum").attr("value",orderNum);
            if($(tabDocument).find("#showCopy_"+eid).attr("checked")){
                showCopy = "1"
            }else{
                showCopy = "0"
            }
            $(tabDocument).find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#showCopy").attr("value",showCopy);
            if($(tabDocument).find("#countFlag_"+eid).attr("checked")){
                countFlag = "1"
            }else{
                countFlag = "0"
            }
            $(tabDocument).find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").find("#countFlag").attr("value",countFlag);
            //序列化表单
            formParams = $(tabDocument).find("#ifrmViewType_"+eid).contents().find("#frmFlwCenter").serializeArray();
            formAction ="/homepage/element/setting/"+formAction;
        }else if(ebaseid=="reportForm" ||ebaseid=="news" || parseInt(ebaseid)==7||parseInt(ebaseid)==1||parseInt(ebaseid)==29){
            formAction ="/page/element/compatible/NewsOperate.jsp";
            tabTitle =$(tabDocument).find("#tabTitle_"+eid).attr("value");
            //	orderNum =$(tabDocument).find("#orderNum_"+eid).attr("value");
            displayTitle = $("#encodeHTML").text(tabTitle).html();

            whereKeyStr = tabWindow.getNewsSettingString(eid);
            formParams ={eid:eid,tabId:tabId,tabTitle:tabTitle,tabWhere:whereKeyStr,method:method};//
        }
        if(tabTitle==''){
            alert('必要信息不完整！')
            return false;
        }

        //		formParams['orderNum']=orderNum;
        //alert(formAction)
        $.post(formAction,formParams,function(data){
            if($.trim(data)==""){
                if(method=='add'){
                    //		var posOr = getTabPos(eid,orderNum,"tabSetting_"+eid);
                    var tabHtmlStr =  '';
                    if(false && (parseInt(ebaseid)==8) && (false || false)){// 协同
                        tabHtmlStr =  "<TR><TD><input type='checkbox' name='checkrow_"+eid+"'/>&nbsp;<img moveimg src='/proj/img/move_wev8.png' title='拖动'/></TD><TD><span id = tab_"+eid+"_"+tabId+" orderNum='"+orderNum+"' tabId='"+tabId+"' tabTitle='' tabWhere='"+whereKeyStr+"' showCopy='"+showCopy+"' countFlag='"+countFlag+"'></span></TD><TD width=200 lign='right'><a href='javascript:deleTab("+eid+","+tabId+",\""+ebaseid+"\")'>删除</a> &nbsp;&nbsp;&nbsp;  <a href='javascript:editTab("+eid+","+tabId+",\""+ebaseid+"\")'>设置</a>&nbsp;&nbsp;<a href='javascript:showSynParamSetting2Wf("+eid+","+tabId+",\""+ebaseid+"\")'>参数设置</a></TD></TR>";
                        //			    $("#tabSetting_"+eid+">tbody").append(tabHtmlStr);
                    }else{
                        tabHtmlStr ="<TR><TD><input type='checkbox' name='checkrow_"+eid+"'/>&nbsp;<img moveimg src='/proj/img/move_wev8.png' title='拖动'/></TD><TD><span id = tab_"+eid+"_"+tabId+" orderNum='"+orderNum+"' tabId='"+tabId+"' tabTitle='' tabWhere='"+whereKeyStr+"' showCopy='"+showCopy+"'></span></TD><TD width=200 lign='right'><a href='javascript:deleTab("+eid+","+tabId+",\""+ebaseid+"\")'>删除</a> &nbsp;&nbsp;&nbsp;  <a href='javascript:editTab("+eid+","+tabId+",\""+ebaseid+"\")'>设置</a></TD></TR>";
                        //		       $("#tabSetting_"+eid+">tbody").append(tabHtmlStr);
                    }
                    tabHtmlStr += "<tr class='Spacing' style='height:1px!important;'><td colspan='3' class='paddingLeft0Table'><div class='intervalDivClass' style='display:block''></div></td></tr>";
                    $("#tabSetting_"+eid+">tbody").append(tabHtmlStr);
                    /*	if(posOr != -1){
											$("#tabSetting_"+eid+">tbody").find('[id='+posOr+']').parent().parent().before(tabHtmlStr);
										}else {

										}*/

                    $("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).attr("tabCount",tabId);
                    $("#tab_"+eid+"_"+tabId).html(displayTitle);
                    $("#tab_"+eid+"_"+tabId).attr("tabTitle",tabTitle);
                }else{
                    $("#tab_"+eid+"_"+tabId).html(displayTitle);
                    $("#tab_"+eid+"_"+tabId).attr("tabTitle",tabTitle);
                    $("#tab_"+eid+"_"+tabId).attr("showCopy",showCopy);
                    $("#tab_"+eid+"_"+tabId).attr("countFlag",countFlag);
                    $("#tab_"+eid+"_"+tabId).attr("tabWhere",whereKeyStr);
                    /*	if(orderNum != $("#tab_"+eid+"_"+tabId).attr('orderNum')){
											$("#tab_"+eid+"_"+tabId).attr("orderNum",orderNum);
											var posOr = getTabPos(eid,orderNum,"tabSetting_"+eid,"tab_"+eid+"_"+tabId);
											var tempHtml = "<TR>"+$("#tab_"+eid+"_"+tabId).parent().parent().html()+"</TR>";
											$("#tab_"+eid+"_"+tabId).parent().parent().remove();
											if(posOr != -1){
												$("#tabSetting_"+eid+">tbody").find('[id='+posOr+']').parent().parent().before(tempHtml);
											}else {
												$("#tabSetting_"+eid+">tbody").append(tempHtml);
											}
										}*/
                }
                tab_dialog.close();
            } else {
                data = $.parseJSON($.trim(data));
                if(data&&data.__result__===false){
                    top.Dialog.alert(data.__msg__);
                }
                //tab_dialog.close();
            }
        });

    }
    function getTabPos(eid,orderNum,elementId,excludeId){
        var allLines = $("#"+elementId+">tbody").find('a[href*=javascript:deleTab]').parent().prev().find('span');
        var posOr = -1;

        for(var i=0; i < allLines.length; i++){
            if(excludeId && excludeId == $(allLines[i]).attr('id')){
                continue;
            }
            if(parseInt(orderNum) <= parseInt($(allLines[i]).attr('orderNum'))){
                posOr = $(allLines[i]).attr('id')
                break;
            }
        }
        return posOr;
    }
    /**
     验证SQL语句
     */
    function checkSql(Obj){
        var sqlStr = jQuery(Obj).val();//event.srcElement.value;
        sqlStr = sqlStr.replace(/\n/g,"");
        sqlStr = sqlStr.replace(/\r/g,"");
        event.srcElement.value = sqlStr;
        sqlStr = " "+sqlStr.toUpperCase();
        if(sqlStr.indexOf(' INSERT ')!=-1||sqlStr.indexOf(' UPDATE ')!=-1 || sqlStr.indexOf(' DELETE ')!=-1 || sqlStr.indexOf(' CREATE ')!=-1|| sqlStr.indexOf(' DROP ')!=-1 ){
            //event.srcElement.value = "";
            jQuery(Obj).val("");
            alert("只能为查询语句")
        }
    }
    function onBack()
    {
        var pagetype = "";
        if(pagetype=="loginview")
        {

            window.location="/homepage/base/LoginBase.jsp?hpid=7";

        }
        else
        {
            window.location='/homepage/base/HomepageBase.jsp?hpid=7&subCompanyId=5&opt=';
        }
    }
    function onBackList()
    {
        var pagetype = "";
        if(pagetype=="loginview")
        {
            window.location="/homepage/maint/LoginPageContent.jsp";
        }
        else
        {
            window.location='/homepage/maint/HomepageRight.jsp?subCompanyId=5';
        }
    }
    function onOk(){
        window.location="/homepage/maint/HomepageRight.jsp?subCompanyId=5";
    }


    function onAddedOrUn(eid,ebaseid,obj){
        divCenter.style.display='inline';
        var code="divCenter.style.display=\"none\";";
        if(jQuery(obj).attr("status")=="add"){
            if(confirm("确认把此元素添加到系统提醒中去吗?")){
                jQuery(obj).attr("status","remove");
                obj.src='/images/homepage/style/style1/remove_wev8.png';
                url="/homepage/element/EsettingOperate.jsp?method=addtoass&eid="+eid;
                GetContent(divCenter,url,false,code);
            }
        } else {
            if(confirm("确认把此元素从系统提醒中移除吗?")){
                jQuery(obj).attr("status","add");
                obj.src='/images/homepage/style/style1/add_wev8.png';
                url="/homepage/element/EsettingOperate.jsp?method=removefromass&eid="+eid;
                GetContent(divCenter,url,false,code);
            }
        }
    }

    //菜单
    function onMenuDivClick(hpid,subCompanyId){
        window.location="/homepage/Homepage.jsp?hpid="+hpid+"&subCompanyId="+subCompanyId+"&isfromportal=1&isfromhp=0"
    }
    function onSubMenuShow(obj){
        var divCurrent=obj.parentElement;
        var pSibling=divCurrent;

        var subMenu=document.getElementById("divSubMenu");
        subMenu.style.display='block';

        subMenu.style.position="absolute";
        //subMenu.style.width=pSibling.offsetWidth;
        subMenu.style.posLeft=pSibling.offsetLeft;
        subMenu.style.posTop=pSibling.offsetTop+pSibling.offsetHeight;
    }

    function onSubMenuHidden(obj){
        var subMenu=document.getElementById("divSubMenu");
        subMenu.style.display='none';
    }

    /*首页导航栏设置*/
    var lastestSubDiv;
    /*
   cObj:Current Object
   pObj:Pervious Sibling Object
   sObj:Sub Menu Object
*/
    function onShowSubMenu(cObj,sObj){

        if (sObj.style.display=="none")    {
            /*初始化其显示的位置及大小*/
            //var pObj=cObj.previousSibling;
            var pObj=$(cObj).prev("div")[0];

            $(sObj).css({
                "position":"absolute",
                "left":$(pObj).offset().left,
                "top":$(pObj).offset().top+$(pObj).height()+10
            })

            if(lastestSubDiv!=null) lastestSubDiv.style.display="none";
            lastestSubDiv=sObj;
            sObj.style.display="";

            //alert(sObj.offsetWidth+":"+pObj.offsetWidth)

            var factDivWidth=pObj.offsetWidth+cObj.offsetWidth;
            if(factDivWidth<sObj.offsetWidth) factDivWidth=sObj.offsetWidth;

            sObj.style.width=factDivWidth;
            if (sObj.canHaveChildren) {
                var childDivs=sObj.children;
                for(var i=0;i<childDivs.length;i++) {
                    var aChild=childDivs[i];
                    if(aChild.offsetWidth<factDivWidth) aChild.style.width=factDivWidth;
                }
            }




        }
    }
    var x,y;
    window.document.body.onmousemove = function(e){
        e=e||event;
        x = e.clientX;
        y = e.clientY;
        if(lastestSubDiv){
            var _l = lastestSubDiv.offsetLeft;
            var _t = lastestSubDiv.offsetTop;
            var _w = lastestSubDiv.offsetWidth;
            var _h = lastestSubDiv.offsetHeight;
            if(x>_l+_w || x<_l){
                lastestSubDiv.style.display = 'none';
                lastestSubDiv = null;
            }
        }
    }

    //过滤元素标题中的特殊字符
    function checkTextValid(id)
    {
        return true;
        //注意：修改####处的字符，其它部分不许修改.
        //if(/^[^####]*$/.test(form.elements[i].value))

        if(/^[^\"+-\\|:;,='<>]*$/.test($("#"+id).val())){
            return true;
        }else{
            alert("不能包含以下字符:"+"\"+-\\|:;,='<>")
            $("#"+id).val($("#"+id).attr("defautvalue"));
            return false;
        }
    }


    function showUnreadNumber(accountId){
        var oSpan = document.getElementById("span"+accountId);
        var oIframe = document.getElementById("iframe"+accountId);
        var unreadMailNumber;
        if(oIframe.contentWindow.document.body.innerText){
            unreadMailNumber=jQuery.trim(oIframe.contentWindow.document.body.innerText);
        }else{
            unreadMailNumber=jQuery.trim(oIframe.contentWindow.document.body.lastChild.textContent);
        }
        oSpan.innerHTML = unreadMailNumber==-1 ? "<img src='/images/BacoError_wev8.gif' align='absmiddle' alt='错误！请检查您的邮件帐户设置。'>" : "(<b>"+unreadMailNumber+"</b>)";
    }

    function stockGopage(type,url){
        if(type==0)
            openFullWindowForXtable(url);
        else
            this.location = url;
    }

    //处理元素样式编辑时没有设置图标图片会出现残图现象
    $(".iconEsymbol").bind('error',function(){
        if($(this).attr("src")==''){
            $(this).hide();
        }
    })


    $(".toolbar").find("img").bind('error',function(){
        if($(this).attr("src")==''){
            $(this).hide();
        }
    })


    $(".downarrowclass").bind('error',function(){
        if($(this).attr("src")==''){
            $(this).hide();
        }
    })


    $(".rightarrowclass").bind('error',function(){
        if($(this).attr("src")==''){
            $(this).hide();
        }
    })

    function onCancel(){
        var dialog = parent.getDialog(window);   //弹出窗口的引用，用于关闭页面
        dialog.close();
    }
    //
    --></script>


<script src="../js/Article_wev8.js"></script>
<script type="text/javascript" src="../js/jquery.scrollTo_wev8.js"></script>

<style type="text/css" rel="STYLESHEET">
    .spCss{
        height: 100%;
        padding-top: 5px;
        background:url(/js/jquery/plugins/weavertabs2/lmz_wev8.gif) no-repeat;
        border: 1px;
        text-align: center;
        background-position: center;
        font-style:normal;
        font-size:12px;
        font-family:宋体;
        font-weight:normal;
        text-align:center;

        width:77px;
        cursor:pointer;
        vertical-align:middle;


    }
    .picturebackhp
    {
        width: 18px;
        height: 32px;
        float:left;
        background: transparent url(/page/element/Picture/resource/image/scroll_left_wev8.gif) no-repeat 0 0;
    }
    .picturenexthp
    {
        width: 18px;
        height: 32px;
        float:left;
        background: transparent url(/page/element/Picture/resource/image/scroll_right_wev8.gif) no-repeat 0 0;
    }
</style>

<script type="text/javascript">
    function chooseColor(obj){
        $(".chooseColor").hide();
        $(".chooseColor").attr("item","");
        var item = $(obj).attr("id");
        var top = $(obj).position().top;
        var left = $(obj).position().left+20;
        $(".chooseColor").attr("item",item);
        $(".chooseColor").css("top",top);
        $(".chooseColor").css("left",left);
        //$(".chooseColor").show();
        $(".chooseColor").fadeIn(600);
    }

    function colorCheck(obj,eid){
        var item = $(".chooseColor").attr("item");
        var color = $(obj).attr("color");
        $("#"+item+"color_"+eid).val(color);
        $("#"+item).css("background",color);
        $(".chooseColor").hide();
    }
    <!--

    var setinnerHTML = function (el, htmlCode) {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.indexOf('msie') >= 0 && ua.indexOf('opera') < 0) {
            htmlCode = '<div style="display:none">for IE</div>' + htmlCode;
            htmlCode = htmlCode.replace(/<script([^>]*)>/gi,
                '<script$1 defer=true>');
            el.innerHTML = htmlCode;
            el.removeChild(el.firstChild);
            //alert(el.innerHTML);
        } else {
            var el_next = el.nextSibling;
            var el_parent = el.parentNode;
            el_parent.removeChild(el);
            el.innerHTML = htmlCode;
            if (el_next) {
                el_parent.insertBefore(el, el_next)
            } else {
                el_parent.appendChild(el);
            }
        }
    }
    //-->
</script>

<script language="javascript"><!--
var isSetting=false;
var tempEid=0; //临时元素ID
var objAreaFlags = new Array();
var mode="run"; //确定页面模式  debug run
var initEnd=20; //从门户过来的数据，这个页面需要在前一段时间进行高度自适应

var needInitItemsNum=0;

function setElementLogo(eid,eLogo){
    $("#icon_"+eid).children('img').attr("src",eLogo);
}

function setElementHeight(eid,height){

    if(height==0){
        $("#content_view_id_"+eid).css("height","auto");
    } else {
        $("#content_view_id_"+eid).css("height",height);
    }
}


function setElementMarginTop(eid,marginTop){
    $("#item_"+eid).css("margin-top",marginTop);
}

function setElementMarginBottom(eid,marginBottom){
    $("#item_"+eid).css("margin-bottom",marginBottom);
}

function setElementMarginLeft(eid,marginLeft){
    $("#item_"+eid).css("margin-left",marginLeft);
}

function setElementMarginRight(eid,marginRight){
    $("#item_"+eid).css("margin-right",marginRight);
}



function onRefresh(eid,ebaseid){
    $("#item_"+eid).attr('needRefresh','true')
    $("#item_"+eid).trigger("reload");
}
var myRefreshEid;
var myRefreshEbaseId;
function setWorkFlowRefresh(eid,ebaseid){
    myRefreshEid = eid;
    myRefreshEbaseId = ebaseid;
}
var initRefresh=0;

function doResize(){
    if(false)return;
    if(initRefresh<initEnd){
        try{
            elementsIsLoad();

            var oFrm=parent.document.getElementById("mainFrame");
            //if(eid=="8166"||eid=="8153") {
            //log(oFrm.style.height+":"+document.body.scrollHeight)
            //alert(oFrm.style.height+":"+document.body.scrollHeight)
            ///}
            if(oFrm.style.height==''){
                oFrm.style.height='0';
            }
            if(parseInt(oFrm.style.height)<parseInt(document.body.scrollHeight)) {
                oFrm.style.height=document.body.scrollHeight+"px";
            } else{
                oFrm.style.height=document.body.scrollHeight+"px";
            }

            //$("#content_view_id_"+eid).append(oFrm.style.height+":"+document.body.scrollHeight);
        } catch(e){
            log(e)
        }
        setTimeout(function(){doResize();},1000);
        initRefresh++;
        log("initRefresh:"+initRefresh);
    }
}
var count=0;
var timeval=3000;


function replaceHtml(el, html) {
    var oldEl = typeof el === "string" ? document.getElementById(el) : el;
    /*@cc_on // Pure innerHTML is slightly faster in IE
        oldEl.innerHTML = html;
        return oldEl;
    @*/
    var newEl = oldEl.cloneNode(false);
    newEl.innerHTML = html;
    oldEl.parentNode.replaceChild(newEl, oldEl);
    /* Since we just removed the old element from the DOM, return a reference
    to the new element, which can be used to restore variable references. */
    return newEl;
}
var intNum=0;
$(document).ready(function () {
    if(true){
        if(window.onbeforeunload){
            $(window).bind("beforeunload",function(){window.onbeforeunload=function(){try{window.parent.document.getElementById("mainFrame").style.height=document.body.scrollHeight+"px";}catch(e){}}});
        }else{
            window.onbeforeunload=function(){try{window.parent.document.getElementById("mainFrame").style.height=document.body.scrollHeight+"px";}catch(e){}}
        }
    }
    if(mode=="debug") $('#txtDebug').css("display","");

    $(".item").bind("reload",function(){
        elementReload($(this).attr("ebaseid"),$(this).attr("eid"),$(this).attr("cornerTop"),$(this).attr("cornerBottom"),$(this).attr("cornerTopRadian"),$(this).attr("cornerBottomRadian"))
    });

    /*
	$.each($(".item"),function(i,n){
		if(intNum<2){
			$this=$(this);
			window.setTimeout(function(){
				$this.trigger("reload");
			},0)
			intNum++;
		}
	})
	*/

    //$(".item").trigger("reload");

    var win_height = getClientHeight();
    var scroll_top = getScrollTop();
    var itemArray = $(".item");
    var itemArray_length=itemArray.length;
    var lastTop = 0;
    for(var i=0;i<itemArray_length;i++){
        var _item = itemArray[i];
        var jq_item = $("#"+_item.id);
        //if($("#"+_item.id).attr("needRefresh")=="false")continue;
        var el_top1 = getAbsoluteTop(_item);
        document.getElementById("content_view_id_"+$(_item).attr("eid")).innerHTML = "<img class='imgWait' src=/images/loading2_wev8.gif> 处理中...<br /><br /><br /><br /><br /><br /><br />";
        var el_top = getAbsoluteTop(_item);

        //document.getElementById("title_"+_item.eid).innerHTML = ("lastTop="+lastTop+";el_top="+el_top+";win_height+scroll_top="+(win_height+scroll_top));

        if(el_top+0 < win_height+scroll_top || lastTop > el_top){
            jq_item.attr("isBeforeInit","true");
            jq_item.trigger("reload");
        }else{
            jq_item.attr("isBeforeInit","false");
        }
        lastTop=el_top;
    }
    elementLoad_queue();

    // 永远验证刷新页面高度

    if(true) {

        doResize(); //从门户过的数据需要刷新页面高度
    }

});

function getScrollTop(){
    var scrollTop=0;
    var hpid = '7';
    var isSetting = 'false';
    if(hpid > 0 ){
        if(document.documentElement&&document.documentElement.scrollTop){
            scrollTop=document.documentElement.scrollTop;
        }
        else if(document.body){
            scrollTop=document.body.scrollTop;
        }
    }else if(hpid < 0){//协同处理
        if(isSetting == 'true'){
            scrollTop = document.getElementById("Element_ContainerDiv").scrollTop;
        }else{
            scrollTop = document.getElementById("Element_Container").scrollTop;
        }
    }
    return scrollTop;
}

function getClientHeight(){
    var yScroll;
    if (window.innerHeight && window.scrollMaxY) {
        yScroll = window.innerHeight + window.scrollMaxY;
    }
    else if (document.body.scrollHeight > document.body.offsetHeight) {
        yScroll = document.body.scrollHeight; // all but Explorer Mac
    }
    else {
        yScroll = document.body.offsetHeight;  // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
    }
    var windowHeight;
    if (self.innerHeight) {
        windowHeight = self.innerHeight; // all except Explorer
    }
    else if (document.documentElement && document.documentElement.clientHeight) {
        windowHeight = document.documentElement.clientHeight; // Explorer 6 Strict Mode
    }
    else if (document.body) {
        windowHeight = document.body.clientHeight; // other Explorers
    }
    if (yScroll < windowHeight) {
        pageHeight = windowHeight; // for small pages with total height less then height of the viewport
    }
    else {
        pageHeight = yScroll;
    }
    return pageHeight;

}
function getAbsoluteTop(element) {
    if (arguments.length != 1 || element == null) {
        return null;
    }
    var offsetTop = element.offsetTop;
    while (element = element.offsetParent) {
        offsetTop += element.offsetTop;
    }
    return offsetTop;
}

var _elementLoad_queue_flag = true;
var ctMax=0;
function elementLoad_queue(){
    if(_elementLoad_queue_flag){
        try{
            _elementLoad_queue_flag=false;
            var itemArray = $(".item[isInited!='true']");
            var flag = false;
            var itemArray_length=itemArray.length;
            for(var i=0;i<itemArray_length;i++){
                var _item = itemArray[i];
                var el_top = getAbsoluteTop(document.getElementById(_item.id));
                var win_height = $(window).height();
                var scroll_top = getScrollTop();
                ctMax++;
                if(el_top < win_height+scroll_top || false){
                    flag = true;
                    $("#"+_item.id).trigger("reload");
                    break;
                }
            }
            if(!flag && itemArray_length > 0){
                setTimeout(elementLoad_queue, 200);
            }
        }catch(e){
        }
        _elementLoad_queue_flag=true;
    }
}



function elementReload(ebaseid,eid,top,bottom,topRadian,bottomRadian){
    if(ebaseid===undefined)
        return;
    var _itemObj = $("#item_"+eid);
    //if($("#item_"+eid).attr("needRefresh")=="false")return;
    _itemObj.attr("isInited","true");
    _itemObj.attr("elementLoad_queue_timeout_flag","false");

    /*
	if($("#item_"+eid).attr('needRefresh')=='false'){
		//alert($("#item_"+eid).attr('needRefresh'))
		_itemObj.attr("isInited","true");
		setTimeout(elementLoad_queue, 200);
		return;
	}
	*/
    //防止重复加载圆角样式
    $("#header_"+eid).uncorner();
    if(top=="Round") {
        $("#header_"+eid).corner("Round top "+topRadian);
    }
    $("#content_"+eid).uncorner();
    if(bottom=="Round") {
        $("#content_"+eid).corner("Round bottom "+bottomRadian);
    }

    var $this = $("#content_view_id_"+eid);
    $this.html("<img class='imgWait' src=/images/loading2_wev8.gif> 处理中...<br /><br /><br /><br /><br /><br /><br />");
    var url=$.trim($this.attr("url")).replace(/&amp;/g,"&");
    //

    if (url.indexOf("?") != -1) {
        url += "&";
    } else {
        url += "?";
    }

    url += "e7" + new Date().getTime() + "=";
    url += "&pagetype=";
    url += "&fieldids=";
    url += "&fieldvalues=" + encodeURIComponent("");
    if(ebaseid=='picture'||ebaseid=='1'||ebaseid=='menu'||ebaseid=='weather'||ebaseid=='7'||ebaseid=='8'||ebaseid=='19'){
        if(_itemObj.attr("isBeforeInit")!="true"){

            //document.getElementById("title_"+eid).innerHTML += "id="+_itemObj.attr("id");

            var _timeOut = 1000;
            if(ebaseid=="weather" || ebaseid=="29"){_timeOut=0;}
            window.setTimeout(function(){
                if(_itemObj.attr("elementLoad_queue_timeout_flag")=="false"){
                    _itemObj.attr("elementLoad_queue_timeout_flag","true");
                    _itemObj.attr("isInited","true");
                    setTimeout(elementLoad_queue, 200);
                    //if(ebaseid=="weather" || ebaseid=="29"){window.top.document.title = ebaseid;}
                }
            },_timeOut);
        }else{
            //alert(1);
        }

        //$this.html("<img class='imgWait' src=/images/loading2_wev8.gif> "+wmsg.hp.excuting+"...")
        $this.load(url,function(){
            if(_itemObj.attr("isBeforeInit")!="true"){
                window.setTimeout(function(){
                    if(_itemObj.attr("elementLoad_queue_timeout_flag")=="false"){
                        _itemObj.attr("elementLoad_queue_timeout_flag","true");
                        _itemObj.attr("isInited","true");
                        if(_itemObj.attr("isBeforeInit")!="true"){
                            setTimeout(elementLoad_queue, 200);
                        }
                    }
                    //var _ifrm = document.getElementById("ifrm_"+eid);
                    //if(_ifrm){onLoadComplete(_ifrm);}
                },0);
            }else{
                //alert(1);
            }
        });
        return;
    }

    if(true){
        log(url);

        if(_itemObj.attr("isBeforeInit")!="true"){

            //document.getElementById("title_"+eid).innerHTML += "id="+_itemObj.attr("id");

            var _timeOut = 1000;
            if(ebaseid=="weather" || ebaseid=="29"){_timeOut=0;}
            window.setTimeout(function(){
                if(_itemObj.attr("elementLoad_queue_timeout_flag")=="false"){
                    _itemObj.attr("elementLoad_queue_timeout_flag","true");
                    _itemObj.attr("isInited","true");
                    setTimeout(elementLoad_queue, 200);
                    //if(ebaseid=="weather" || ebaseid=="29"){window.top.document.title = ebaseid;}
                }
            },_timeOut);
        }else{
            //alert(1);
        }

        /*
		$.get(url, function(data){
			if(_itemObj.attr("elementLoad_queue_timeout_flag")=="false"){
				_itemObj.attr("elementLoad_queue_timeout_flag","true");
				_itemObj.attr("isInited","true");
				if(_itemObj.attr("isBeforeInit")!="true"){
					setTimeout(elementLoad_queue, 200);
				}
			}
			//document.getElementById("content_view_id_"+eid).innerHTML=data;
			//setinnerHTML(document.getElementById("content_view_id_"+eid),data);
			$("#content_view_id_"+eid).html(data);

			var _ifrm = document.getElementById("ifrm_"+eid);
			if(_ifrm){onLoadComplete(_ifrm);}
		});
*/

        $.ajax({
            type: "POST",
            cache: false,
            url: url,
            success: function(data){
                if(_itemObj.attr("elementLoad_queue_timeout_flag")=="false"){
                    _itemObj.attr("elementLoad_queue_timeout_flag","true");
                    _itemObj.attr("isInited","true");
                    if(_itemObj.attr("isBeforeInit")!="true"){
                        setTimeout(elementLoad_queue, 200);
                    }
                }

                //document.getElementById("content_view_id_"+eid).innerHTML=data;
                //setinnerHTML(document.getElementById("content_view_id_"+eid),data);
                //$("#content_view_id_"+eid).html(data);
                $("#content_view_id_"+eid).html( data);
                /*	var regDetectJs = /<script(.|\n)*?>(.|\n|\r\n)*?<\/script>/ig;
				var jsContained = data.match(regDetectJs);

				if(jsContained) {
				    var regGetJS = /<script(.|\n)*?>((.|\n|\r\n)*)?<\/script>/im;

				    var jsNums = jsContained.length;
				    for (var i=0; i<jsNums; i++) {
				        var jsSection = jsContained[i].match(regGetJS);

				        if(jsSection[2]) {
				            if(window.execScript) {
				                window.execScript(jsSection[2]);
				            } else {
				                window.eval(jsSection[2]);
				            }
				        }
				    }
				}
				*/
                var _ifrm = document.getElementById("ifrm_"+eid);
                if(_ifrm){onLoadComplete(_ifrm);}
            }
        });

        return;
    }

    if(url.substring(0,1)!="?")  {
        //$this.html("<img class='imgWait' src=/images/loading2_wev8.gif> "+wmsg.hp.excuting+"...")
        log(url)

        if(_itemObj.attr("isBeforeInit")!="true"){
            //alert(_itemObj.attr("id"));

            var _timeOut = 1000;
            if(ebaseid=="weather" || ebaseid=="29"){_timeOut=0;}
            window.setTimeout(function(){
                if(_itemObj.attr("elementLoad_queue_timeout_flag")=="false"){
                    _itemObj.attr("elementLoad_queue_timeout_flag","true");
                    _itemObj.attr("isInited","true");
                    setTimeout(elementLoad_queue, 200);
                    //if(ebaseid=="weather" || ebaseid=="29"){window.top.document.title = ebaseid;}
                }
            },_timeOut);
        }else{
            //alert(1);
        }

        var xmlHttp = XmlHttp.create();
        xmlHttp.open("POST", url, true);

        xmlHttp.onreadystatechange = function () {
            switch (xmlHttp.readyState) {
                case 0 :  //uninitialized
                    break ;
                case 1 :   //loading
                    break ;
                case 2 :   //loaded
                    break ;
                case 3 :   //interactive
                    break ;
                case 4 :  //complete
                    if (xmlHttp.status==200)  {
                        //replaceHtml("content_view_id_"+eid,"aaa")
                        //document.getElementById("content_view_id_"+eid).innerText='aaa'
                        //count++;

                        var str=$.trim(xmlHttp.responseText);
                        //var re = /<script.*?>.*?<\/script>/gi;
                        ////var tmpStr=str;
                        //var tmpStr=tmpStr.replace(re,"")

                        window.setTimeout(function(){
                            if(_itemObj.attr("elementLoad_queue_timeout_flag")=="false"){
                                _itemObj.attr("elementLoad_queue_timeout_flag","true");
                                _itemObj.attr("isInited","true");
                                if(_itemObj.attr("isBeforeInit")!="true"){
                                    setTimeout(elementLoad_queue, 200);
                                }
                            }
                            //document.getElementById("content_view_id_"+eid).innerHTML=str;
                            setinnerHTML(document.getElementById("content_view_id_"+eid),str);
                            var _ifrm = document.getElementById("ifrm_"+eid);
                            if(_ifrm){onLoadComplete(_ifrm);}
                        },0);

                        /*var re2 = /(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/gi;
						//var arr;
						//var isExec=false;

						//while ((arr = re2.exec(str)) != null)	{
						//	window.setTimeout($this.append(arr[0]),count*timeval+500);
						//	isExec=true;
						}*/
                    } else {
                        //alert(xmlHttp.responseText);
                    }
                    break ;
            }
        }
        xmlHttp.setRequestHeader("Content-Type","text/xml");
        xmlHttp.send(null);

    }

}


function log(s){
    if(mode=="debug") {
        $('#txtDebug').val($('#txtDebug').val()+s+"\n");
        var oTxtDebug=$('#txtDebug').get(0);
        oTxtDebug.scrollTop+=oTxtDebug.offsetHeight;
    }

}


function  GetContent(divObj,url,isAddElement,code,isNeedRefresh){
    divObj.innerHTML="<img src=/images/loading2_wev8.gif> 处理中...";
    //return;
    var xmlHttp = XmlHttp.create();
    xmlHttp.open("GET",url, true);
    xmlHttp.onreadystatechange = function () {
        switch (xmlHttp.readyState) {
            case 3 :
                divObj.innerHTML="<img src=/images/loading2_wev8.gif> 传输中...";
                break;
            case 4 :
                if(isAddElement){
                    $(".group[areaflag='A']").prepend(jQuery.trim(xmlHttp.responseText));
                    try{
                        $(".group[areaflag='A']").children("div:first").bind("reload",function(){
                            elementReload($(this).attr("ebaseid"),$(this).attr("eid"),$(this).attr("cornerTop"),$(this).attr("cornerBottom"));
                        });

                        $(".group[areaflag='A']").children("div:first").trigger("reload");

                        //var eid=$(".group[areaflag='A']").children("div:first").attr("eid");
                        //var jsCode = $("#content_js_"+eid).html();
                        //eval(jsCode)
                    }catch(e){
                        //alert(e.name)
                    }
                } else {
                    divObj.innerHTML =xmlHttp.responseText;
                }
                if(isNeedRefresh!=undefined){
                    window.location.reload();
                }
                if(xmlHttp.status < 400)   if(code!=null&&code!="") eval(code);
                break;
        }
    }
    xmlHttp.setRequestHeader("Content-Type","text/xml")
    xmlHttp.send(null);
}

function  GetContentForSynize(divObj,url,isAddElement,code,isNeedRefresh){
    $(divObj).hide();
    //divObj.innerHTML="<img src=/images/loading2_wev8.gif> "+wmsg.hp.excuting+"...";
    showDoDialog("<img src=/images/loading2_wev8.gif> 处理中...");
    //return;
    var xmlHttp = XmlHttp.create();
    xmlHttp.open("GET",url, true);
    xmlHttp.onreadystatechange = function () {
        switch (xmlHttp.readyState) {
            case 3 :
                //divObj.innerHTML="<img src=/images/loading2_wev8.gif> "+wmsg.hp.transporting+"...";
                closeDoDialog();
                //   top.Dialog.alert("<font  color=#000> 处理成功! </font>");
                break;
            case 4 :
                if(isAddElement){
                    $(".group[areaflag='A']").prepend(xmlHttp.responseText);
                    try{
                        $(".group[areaflag='A']").children("div:first").bind("reload",function(){
                            elementReload($(this).attr("ebaseid"),$(this).attr("eid"),$(this).attr("cornerTop"),$(this).attr("cornerBottom"));
                        });

                        $(".group[areaflag='A']").children("div:first").trigger("reload");

                        //var eid=$(".group[areaflag='A']").children("div:first").attr("eid");
                        //var jsCode = $("#content_js_"+eid).html();
                        //eval(jsCode)
                    }catch(e){
                        //alert(e.name)
                    }
                } else {
                    //divObj.innerHTML =xmlHttp.responseText;
                    top.Dialog.alert("<font  color=#000> 处理成功!</font>");
                    closeDoDialog();

                }
                if(isNeedRefresh!=undefined){
                    window.location.reload();
                }
                if(xmlHttp.status < 400)   if(code!=null&&code!="") eval(code);
                break;
        }
    }
    xmlHttp.setRequestHeader("Content-Type","text/xml")
    xmlHttp.send(null);
}

var Show_dialog;
function showDoDialog(content){
    Show_dialog = new window.top.Dialog();
    Show_dialog.currentWindow = window;
    Show_dialog.Width = 240;
    Show_dialog.Height = 120;
    Show_dialog.Modal = true;
    Show_dialog.Title = "系统提示";
    Show_dialog.InnerHtml="<div style='text-align:center;color:#000;font-size:14px;height: 120px;line-height: 120px;'>"+content+"</div>";
    Show_dialog.show();
}


function closeDoDialog(){
    Show_dialog.close();
}

//添加新节点
function  GetContentForDragAdd(divObj,url,isAddElement,code,isNeedRefresh){
    //alert(url);
    divObj.innerHTML="<img src=/images/loading2_wev8.gif> 处理中...";
    //return;
    var xmlHttp = XmlHttp.create();
    xmlHttp.open("GET",url, true);
    xmlHttp.onreadystatechange = function () {
        switch (xmlHttp.readyState) {
            case 3 :
                divObj.innerHTML="<img src=/images/loading2_wev8.gif> 传输中...";
                break;
            case 4 :
                if(isAddElement){
                    var itemholder=$(".itemholder");

                    var itemnew=$(xmlHttp.responseText);
                    //添加新节点
                    itemnew.insertBefore(itemholder);

                    itemholder.hide();

                    try{
                        itemnew.bind("reload",function(){
                            elementReload($(this).attr("ebaseid"),$(this).attr("eid"),$(this).attr("cornerTop"),$(this).attr("cornerBottom"));
                        });

                        itemnew.trigger("reload");
                    }catch(e){
                        //alert(e.name)
                    }
                } else {
                    divObj.innerHTML =xmlHttp.responseText;
                }
                if(xmlHttp.status < 400)   if(code!=null&&code!="") eval(code);
                break;
        }
    }
    xmlHttp.setRequestHeader("Content-Type","text/xml")
    xmlHttp.send(null);
}


function onShowOrHideE(eid){
    $("#content_"+eid).toggle();
}


function onChanageAllStatus(obj){

    var rightspanmenu=$("#rightMenuIframe").contents().find("#spanStatus");

    var showSpan=jQuery(obj);

    var status=showSpan.attr("stas");

    if(status=="show" || typeof(status) == "undefined")	{
        $(".content").hide();
        showSpan.attr("stas","hidden");
        $(window.parent.document).find("#btnStatus").attr("value",'全部展开');
        if(showSpan.attr("id")  == "spanStatus") try{showSpan.html('全部展开');}catch(e){}
        if(rightspanmenu.length>0){
            rightspanmenu.html('全部展开');
        }
    } else {
        $(".content").show() ;
        $(showSpan).attr("stas","show");
        $(window.parent.document).find("#btnStatus").attr("value",'全部收缩');
        if(showSpan.attr("id")  == "spanStatus") try{showSpan.html('全部收缩');}catch(e){}
        if(rightspanmenu.length>0){
            rightspanmenu.html('全部收缩');
        }
    }
}


function onChanageSynersyStatus(hpid){
    var synersy=$("#synersyStatus");
    var status=synersy.attr("stas");
    if(status=="1" || typeof(status) == "undefined")	{//已启用
        synersy.attr("stas","0");
    } else {// 不启用
        synersy.attr("stas","1");
    }

    $.ajax({
        type: "POST",
        cache: false,
        url: "/homepage/element/EsettingOperate.jsp?method=synernyisusechange&hpid="+hpid+"&isuse="+synersy.attr("stas"),
        success: function(data){
            if(data.trim() == '1'){
                if(status=="1" || typeof(status) == "undefined")	{//已启用
                    $(window.parent.document).find("#synersyStatus").attr("value","启用");
                } else {// 不启用
                    $(window.parent.document).find("#synersyStatus").attr("value","不启用");
                }
                top.Dialog.alert("处理成功!!");
            }else{
                top.Dialog.alert("处理异常!");
            }
        }
    });
}



function chkReplyClick(obj,eid,name){
    onNewContentCheck(document.getElementById(name+"_"+eid),eid,name)
}


function onNewContentCheck(obj,eid,name){
    obj.checked=true;
    var isHaveReply="0";
    try{
        if(document.getElementById("chk"+name+"_"+eid).checked) isHaveReply="1";
    } catch(e){
    }

    document.getElementById("_whereKey_"+eid).value=$(obj).attr("selecttype")+"|"+obj.value+"|"+isHaveReply;

}

function onShowCatalog(input,span,eid) {
    var result = showModalDialog("/systeminfo/BrowserMain.jsp?url=/docs/category/MultiCategorySingleBrowser.jsp");
    if (result != null) {
        if (result[0] > 0)  {
            input.value=result[1]
            span.innerHTML=result[5];
        }else{
            input.value="0";
            span.innerHTML="";
        }
    }
    onNewContentCheck(input,eid,'cate')
}

function onWFEClick(obj){
    if(!obj.checked){ //如果取消选择,则后面所有的选择都取消
        //得到后面所有的节点checkbox 设为非选
        var objNextTd=obj.parentNode.nextSibling;
        var objNodes=objNextTd.getElementsByTagName("input");
        for(var i=0;i<objNodes.length;i++){
            var objNode=objNodes[i];
            objNode.checked=false;
            //alert(objNode.value);
        }
    }
}
function onWFENodeClick(obj){
    if(obj.checked){ //如果选择,流程就选择
        var objPreTd=obj.parentNode.previousSibling;
        var objNodes=objPreTd.getElementsByTagName("input");
        for(var i=0;i<objNodes.length;i++){
            var objNode=objNodes[i];
            objNode.checked=true;
            //alert(objNode.value);
        }
    }
}

function onViewTypeChange(obj,eid){
    document.getElementById("ifrmViewType_"+eid).src="/homepage/element/setting/WorkflowCenterBrowser.jsp?viewType="+obj.value+"&eid="+eid;
    //alert(obj.value)
}

function elmentReLoad(ebaseid){

    /*var tables=document.getElementsByTagName("div");
		for(var i=0;i<tables.length;i++){
			var tbl=tables[i];
			if(tbl.ebaseid==ebaseid) {
				var tblEid=tbl.eid;
				try{
					eval("objE"+tblEid).contentLoad();
				} catch(e){}
			}
		}*/

    $(".item[ebaseid="+ebaseid+"]").attr('needRefresh','true')
    $(".item[ebaseid="+ebaseid+"]").trigger("reload");
}

function onWorktaskSetting(obj){
    var objParent=obj.parentNode;
    var children=objParent.getElementsByTagName("INPUT");
    var value="";
    for(var i=0;i<children.length;i++){
        var child=children[i];
        if(child.type=="checkbox" && child.checked){
            value+=child.value+"|";
        }
    }
    if(value!="") value=value.substring(0,value.length-1);
    //objParent.firstChild.value=value;
    jQuery(objParent).find("input[type='hidden']:first").val(value);
}

function loadContent(eid,url,queryString,e){
    var event = $.event.fix(e);
    var tabId = jQuery(event.target).attr("tabId");
    if(tabId==undefined) tabId = jQuery(event.target).parents("td:first").attr("tabId");

    var ebaseid = $("#item_"+eid).attr("ebaseid");
    url = url + "?tabId="+tabId+"&"+queryString;
    if (url.indexOf("?") != -1) {
        url += "&";
    } else {
        url += "?";
    }

    url += "e7" + new Date().getTime() + "=";
    var objTd=event.target;
    if(event.target.tagName!='TD') objTd=jQuery(event.target).parents("td:first");

    $(objTd).siblings().removeClass("tab2selected").removeClass("tab2unselected").addClass("tab2unselected");
    $(objTd).removeClass("tab2unselected").addClass("tab2selected");

    $("#tabContant_"+eid).html("<img src=/images/loading2_wev8.gif>处理中...")
    try{
        if(ebaseid==1||ebaseid==29){
            $.get(url, { name: "John", time: "2pm" },function(data){

                $("#tabContant_"+eid).html($.trim(data));
                fixedPosition(eid);
                $("#more_"+eid).attr("href","javascript:openFullWindowForXtable('"+$("#more_"+eid).attr("morehref")+"&tabid="+tabId+"')")
            } );
        }else{
            $("#tabContant_"+eid).load(url,{},function(){
                fixedPosition(eid);
                $("#more_"+eid).attr("href","javascript:openFullWindowForXtable('"+$("#more_"+eid).attr("morehref")+"&tabid="+tabId+"')")
            });
        }
    } catch(e){}
}

function loadContentForChart(eid,url,queryString,tabId){

    var ebaseid = $("#item_"+eid).attr("ebaseid");
    url = url + "?tabId="+tabId+"&"+queryString;
    if (url.indexOf("?") != -1) {
        url += "&";
    } else {
        url += "?";
    }

    url += "e7" + new Date().getTime() + "=";
    var objTd=$("#tabContainer_"+eid).find("td[tabId='"+tabId+"']");

    $(objTd).siblings().removeClass("tab2selected").removeClass("tab2unselected").addClass("tab2unselected");
    $(objTd).removeClass("tab2unselected").addClass("tab2selected");

    $("#tabContant_"+eid).html("<img src=/images/loading2_wev8.gif>处理中...")
    try{
        if(ebaseid==1||ebaseid==29){
            $.get(url, { name: "John", time: "2pm" },function(data){

                $("#tabContant_"+eid).html($.trim(data));
                fixedPosition(eid);
                $("#more_"+eid).attr("href","javascript:openFullWindowForXtable('"+$("#more_"+eid).attr("morehref")+"&tabid="+tabId+"')")
            } );
        }else{
            $("#tabContant_"+eid).load(url,{},function(){
                fixedPosition(eid);
                $("#more_"+eid).attr("href","javascript:openFullWindowForXtable('"+$("#more_"+eid).attr("morehref")+"&tabid="+tabId+"')")
            });
        }
    } catch(e){}
}


function showDBSetting(eid){
    if(parseInt(event.srcElement.value)==1){
        $("#dbSetting_"+eid).css("display","")
    }else{
        $("#dbSetting_"+eid).css("display","none")
    }
}
function openFullWindowForXtable(url){
    //添加协同参数传递
    var reqid='';
    var hpid='7';
    var pagetype='';
    var fieldids='';
    var fieldvalues='';
    if(url.indexOf("/")==0){
        if (url.indexOf("?") != -1) {
            url += "&";
        } else {
            url += "?";
        }
        url += "e7" + new Date().getTime() + "=";
        if(reqid!=='')
            url+="&requestid="+reqid;
        if(hpid!=='')
            url+="&hpid="+hpid;
        if(pagetype!=='')
            url+="&pagetype="+pagetype;
        if(fieldids!=='')
            url+="&fieldids="+fieldids;
        if(fieldvalues!=='')
            url+="&fieldvalues="+fieldvalues;
    }
    var redirectUrl = url ;
    var width = screen.availWidth ;
    var height = screen.availHeight ;
    var szFeatures = "top=0," ;
    szFeatures +="left=0," ;
    if(url.indexOf("ebaseid=15")!=-1){
        //td61285
        //szFeatures +="width=800," ;
        szFeatures +="width="+(width-10)+"," ;
    }else{
        szFeatures +="width="+(width-10)+"," ;
    }
    szFeatures +="height="+(jQuery.browser.msie?height:(height-60))+"," ;
    szFeatures +="directories=no," ;
    szFeatures +="status=yes," ;
    szFeatures +="menubar=no," ;
    szFeatures +="scrollbars=yes," ;
    szFeatures +="resizable=yes" ;
    window.open(redirectUrl,"",szFeatures) ;
}


function openFullWindowForDoc(url,docid){
    try{
        $("#doclist_"+docid+"img").hide();
        $("#doclist_"+docid+"img").parent('.docdetail').find('.docnamedetail').removeAttr("style");
        $("#doclist_"+docid+"img").parent('.docdetail').find('.docnamedetail').css("color","#242424");
    }catch(e){}

    if(url.indexOf("/")==0){
        if (url.indexOf("?") != -1) {
            url += "&";
        } else {
            url += "?";
        }
        url += "e7" + new Date().getTime() + "=";
    }
    var redirectUrl = url ;
    var width = screen.availWidth ;
    var height = screen.availHeight ;
    var szFeatures = "top=0," ;
    szFeatures +="left=0," ;
    szFeatures +="width="+(width-10)+"," ;
    szFeatures +="height="+(jQuery.browser.msie?height:(height-60))+"," ;
    szFeatures +="directories=no," ;
    szFeatures +="status=yes," ;
    szFeatures +="menubar=no," ;
    szFeatures +="scrollbars=yes," ;
    szFeatures +="resizable=yes" ;
    window.open(redirectUrl,"",szFeatures) ;
}

function openFullWindowHaveBarForWFList(url,requestid){
    try{
        document.getElementById("wflist_"+requestid+"span").innerHTML = "";
    }catch(e){}
    if (url.indexOf("?") != -1) {
        url += "&";
    } else {
        url += "?";
    }

    url += "e7" + new Date().getTime() + "=";
    var redirectUrl = url ;
    var width = screen.availWidth-10 ;
    var height = screen.availHeight-50 ;
    //if (height == 768 ) height -= 75 ;
    //if (height == 600 ) height -= 60 ;
    var szFeatures = "top=0," ;
    szFeatures +="left=0," ;
    szFeatures +="width="+width+"," ;
    szFeatures +="height="+height+"," ;
    szFeatures +="directories=no," ;
    szFeatures +="status=yes,toolbar=no,location=no," ;
    szFeatures +="menubar=no," ;
    szFeatures +="scrollbars=yes," ;
    szFeatures +="resizable=yes" ; //channelmode
    window.open(redirectUrl,"",szFeatures) ;
}


function openFullWindowHaveBar(url){
    if (url.indexOf("?") != -1) {
        url += "&";
    } else {
        url += "?";
    }

    url += "e7" + new Date().getTime() + "=";
    var redirectUrl = url ;
    var width = screen.availWidth-10 ;
    var height = screen.availHeight-50 ;
    //if (height == 768 ) height -= 75 ;
    //if (height == 600 ) height -= 60 ;
    var szFeatures = "top=0," ;
    szFeatures +="left=0," ;
    szFeatures +="width="+width+"," ;
    szFeatures +="height="+height+"," ;
    szFeatures +="directories=no," ;
    szFeatures +="status=yes,toolbar=no,location=no," ;
    szFeatures +="menubar=no," ;
    szFeatures +="scrollbars=yes," ;
    szFeatures +="resizable=yes" ; //channelmode
    window.open(redirectUrl,"",szFeatures) ;
}


function openFullWindowHaveBarForWF(url,requestid){

    try{
        $("#wflist_"+requestid+"img").hide();
        $("#wflist_"+requestid+"img").parent('.reqdetail').find('.reqname').removeAttr("style");
    }catch(e){}

    if (url.indexOf("?") != -1) {
        url += "&";
    } else {
        url += "?";
    }

    url += "e7" + new Date().getTime() + "=";
    var redirectUrl = url ;
    var width = screen.availWidth-10 ;
    var height = screen.availHeight-50 ;
    //if (height == 768 ) height -= 75 ;
    //if (height == 600 ) height -= 60 ;
    var szFeatures = "top=0," ;
    szFeatures +="left=0," ;
    szFeatures +="width="+width+"," ;
    szFeatures +="height="+height+"," ;
    szFeatures +="directories=no," ;
    szFeatures +="status=yes,toolbar=no,location=no," ;
    szFeatures +="menubar=no," ;
    szFeatures +="scrollbars=yes," ;
    szFeatures +="resizable=yes" ; //channelmode
    window.open(redirectUrl,"",szFeatures) ;
}

function  readCookie(name){
    var  cookieValue  =  "7";
    var  search  =  name  +  "=";
    try{
        if(document.cookie.length  >  0) {
            offset  =  document.cookie.indexOf(search);
            if  (offset  !=  -1)
            {
                offset  +=  search.length;
                end  =  document.cookie.indexOf(";",  offset);
                if  (end  ==  -1)  end  =  document.cookie.length;
                cookieValue  =  unescape(document.cookie.substring(offset,  end))
            }
        }
    }catch(exception){
    }
    return  cookieValue;
}


function loadRssElementContent(eid,rssUrl,imgSymbol,hasTitle,hasDate,hasTime,titleWidth,dateWidth,timeWidth,rssTitleLength,linkmode,size,perpage,languageid){
    var returnStr="";

    var objDiv = document.getElementById("rssContent_"+eid);
    try{
        var rssRequest = XmlHttp.create();
        rssRequest.open("GET",rssUrl, true);
        rssRequest.onreadystatechange = function () {
            switch (rssRequest.readyState) {
                case 3 :
                    break;
                case 4 :
                    if (rssRequest.status==200)  {

                        returnStr+="<TABLE id=\"_contenttable_"+eid+"\" style=\"width:100%\" class=\"Econtent\">"+
                            " <TR>"+
                            " <TD width=\"1px\"></TD>"+
                            " <TD width=\"*\" valign=\"center\">"+
                            "	    <TABLE  width=\"100%\">";

                        var items=rssRequest.responseXML;
                        var titles=new Array(),pubDates=new Array(); dates=new Array(), times=new Array(), linkUrls=new Array(), descriptions=new Array()

                        var items_count=items.getElementsByTagName('item').length;

                        if(items_count>perpage) items_count=perpage;

                        for(var i=0; i<items_count; i++) {
                            titles[i]="";
                            pubDates[i]="";
                            linkUrls[i]="";
                            descriptions[i]="";
                            dates[i]="";
                            times[i]="";

                            if(items.getElementsByTagName('item')[i].getElementsByTagName('title').length==1)
                                titles[i]=items.getElementsByTagName('item')[i].getElementsByTagName('title')[0].firstChild.nodeValue;


                            if(items.getElementsByTagName('item')[i].getElementsByTagName('pubDate').length==1)
                                pubDates[i]=items.getElementsByTagName('item')[i].getElementsByTagName('pubDate')[0].firstChild.nodeValue;

                            if(items.getElementsByTagName('item')[i].getElementsByTagName('link').length==1)
                                linkUrls[i]=items.getElementsByTagName('item')[i].getElementsByTagName('link')[0].firstChild.nodeValue;


                            returnStr+="<TR height=18px>"+
                                "  <TD width=\"8\">"+imgSymbol+"</TD>";


                            if(hasTitle=="true"){
                                returnStr+="<TD width="+titleWidth+">";
                                var tempTitle = "";
                                if(titles[i].length>rssTitleLength){
                                    tempTitle = titles[i].substring(0,rssTitleLength)+"...";
                                }else{
                                    tempTitle = titles[i];
                                }

                                if(linkmode=="1"){
                                    returnStr+="<a href=\""+linkUrls[i]+"\" target=\"_self\" title=\""+titles[i]+"\"><FONT class=\" font\" >"+tempTitle+"</FONT></a>";
                                } else {
                                    returnStr+="<a href=\"javascript:openFullWindowForXtable('"+linkUrls[i]+"')\" title=\""+titles[i]+"\"><FONT class=\" font\"  >"+tempTitle+"</FONT></a>";
                                }
                                returnStr+="</TD>";
                            }

                            if(pubDates[i]!=""){
                                var d = new Date(pubDates[i]);

                                if(d!='NaN'){
                                    dates[i]=d.getFullYear()+"-"+(d.getMonth() + 1) + "-"+d.getDate() ;

                                    if(d.getHours()<=9)	times[i]+="0"+d.getHours() + ":";
                                    else times[i]+= d.getHours() + ":";

                                    if(d.getMinutes()<=9)	times[i]+="0"+d.getMinutes() + ":";
                                    else times[i]+= d.getMinutes() + ":";

                                    if(d.getSeconds()<=9)	times[i]+="0"+d.getSeconds();
                                    else times[i]+= d.getSeconds() ;
                                }else{
                                    dates[i]="";
                                    times[i]="";
                                }
                            } else {
                                dates[i]="";
                                times[i]="";
                            }
                            if(hasDate=="true"){
                                returnStr+="<TD width="+dateWidth+">"+"<font class=font>"+dates[i]+"</font>"+"</TD>";
                            }
                            if(hasTime=="true"){
                                returnStr+="<TD width="+timeWidth+">"+"<font class=font>"+times[i]+"</font>"+"</TD>";
                            }
                            returnStr+="</TR>";

                            if(i<items_count-1){
                                returnStr+="<TR class=\"sparator\" style='height:1px'><TD style='padding:0px' colspan="+(size+1)+"></TD></TR>";
                            }

                        }


                        returnStr+="		</TABLE>"+
                            "	</TD>"+
                            " <TD width=\"1px\"></TD>"+
                            " </TR>"+
                            "</TABLE>";

                        objDiv.innerHTML=returnStr;
                    } else {
                        objDiv.innerHTML=rssRequest.responseText;
                    }
                    break;
            }
        }
        rssRequest.setRequestHeader("Content-Type","text/xml")
        rssRequest.send(null);
    } catch(e){
        if(e.number==-2147024891){
            if(languageid==8)
                objDiv.innerHTML="RSS use client read，It need let this site's url into you IE trust list.！&nbsp;<a href='/homepage/HowToAdd.jsp' target='_blank'>(How?)</a>";
            else
                objDiv.innerHTML="RSS采用的是客户端读取，需把本站点添加到受信任站点！&nbsp;<a href='/homepage/HowToAdd.jsp' target='_blank'>(怎样添加?)</a>";
        }   else {
            objDiv.innerHTML=e.number+":"+e.description;
        }
    }

}

function onChangeImgType(eid,value){
    if(event.srcElement.value==0){
        $("#imgsrcDiv_"+eid).hide()
    }else{
        $("#imgsrcDiv_"+eid).show()
        if(document.getElementById("_imgsrc"+eid).className=='filetree'){
            $("#_imgsrc"+eid).filetree();
        }
    }
}

function onLoadComplete(ifm){
    try{
        if(ifm.readyState=="complete"){
            if(ifm.contentWindow.document.body.scrollHeight>ifm.height){
                ifm.style.height = ifm.height;
            }else{
                ifm.style.height = ifm.contentWindow.document.body.scrollHeight;
            }
        }
    }catch(e){
        //alert(e.message);
    }
    //$("#item_"+eid).attr("isInited","true");
    //alert(ifm.outerHTML);
    //setTimeout(elementLoad_queue, 200);
    //elementLoad_queue();
}
function onShowMultiCatalog(input,span,eid){
    splitflag = ",,,"
    var dlg=new window.top.Dialog();//定义Dialog对象
    dlg.Model=true;
    dlg.Width=550;//定义长度
    dlg.Height=550;
    dlg.URL="/systeminfo/BrowserMain.jsp?url=/docs/category/MultiCategoryMBrowser.jsp?para="+input.value+"&splitflag="+splitflag;
    dlg.Title="文档目录";
    dlg.callbackfun=function(params,datas){

        if (datas) {
            if (datas.id!= "") {
                ids = datas.id.split(",");
                names =datas.name.split(",");
                sHtml = "";
                for( var i=0;i<ids.length;i++){
                    if(ids[i]!=""){
                        sHtml = sHtml+"<a href='/docs/search/DocSearchView.jsp?showtype=0&displayUsage=0&fromadvancedmenu=0&infoId=0&showDocs=0&showTitle=1&maincategory=&subcategory=&seccategory="+ids[i]+"' target='_blank'>"+names[i]+"</a>&nbsp";
                    }
                }
                $(span).html(sHtml);
                $(input).val(datas.id);
            }
            else	{
                $(span).html("<IMG src='/images/BacoError_wev8.gif' align=absMiddle>");
                $(input).val("");
            }
            onNewContentCheck(input,eid,"cate");
        }
    }
    dlg.show();




}


function onShowMultiCatalog2(input,span,eid){
    splitflag = ",,,"
    var dlg=new window.top.Dialog();//定义Dialog对象
    dlg.Model=true;
    dlg.Width=550;//定义长度
    dlg.Height=550;
    dlg.URL="/systeminfo/BrowserMain.jsp?url=/docs/category/MultiCategoryMBrowser.jsp?para="+input.value+"&splitflag="+splitflag;
    dlg.Title="文档目录";
    dlg.callback=function(datas){
        if (datas) {
            if (datas.id!= "") {
                tempids = ","+datas.id;
                temppaths = "," + datas.path;
                var ids = tempids.split(",");
                var paths =temppaths.split(",");
                sHtml = "";

                for( var i=0;i<ids.length;i++){
                    if(ids[i]!=""){
                        sHtml = sHtml+"<a href='/docs/search/DocSearchView.jsp?showtype=0&displayUsage=0&fromadvancedmenu=0&infoId=0&showDocs=0&showTitle=1&maincategory=&subcategory=&seccategory="+ids[i]+"' target='_blank'>"+paths[i]+"</a>&nbsp";
                    }
                }
                $(span).html(sHtml);
                $(input).val(datas.id);
            }
            else{
                //$(span).html("<IMG src='/images/BacoError_wev8.gif' align=absMiddle>");
                //$(input).val("");
            }
            onNewContentCheck(input,eid,"cate");
        }
    }
    dlg.show();




}

function onShowDoc(input,span,eid){

    var dlg=new window.top.Dialog();//定义Dialog对象
    dlg.Model=true;
    dlg.Width=550;//定义长度
    dlg.Height=550;
    dlg.URL="/docs/DocBrowserMain.jsp?url=/docs/docs/DocBrowser.jsp?from=hpelement";
    dlg.Title="内容来源";
    dlg.callbackfun=function(params,datas){
        if(datas){
            if(datas.id!=""){
                $(input).val(datas.id);
                $(span).html( "<a href='/docs/docs/DocDsp.jsp?id="+datas.id+"'  target='_blank'>"+datas.name+"</a>");
            }
            else{
                $(input).val("");
                $(span).html("");
            }
        }
    }
    dlg.show();



}
function onShowMutiDummy(input,span,eid)	{
    splitflag = ",,,";
    var dlg=new window.top.Dialog();//定义Dialog对象
    dlg.Model=true;
    dlg.Width=550;//定义长度
    dlg.Height=550;
    dlg.URL="/systeminfo/BrowserMain.jsp?url=/docs/category/DocTreeDocFieldBrowserMulti.jsp?para="+input.value+"&splitflag="+splitflag;
    dlg.Title="未读文档";
    dlg.callbackfun=function(params,datas){
        if (datas) {
            if (datas.id!= ""){
                dummyidArray=datas.id.split(",");
                dummynames=datas.name.split(",");
                dummyLen=dummyidArray.length;
                sHtml="";
                for(var k=0;k<dummyLen;k++){
                    sHtml = sHtml+"<a href='/docs/docdummy/DocDummyList.jsp?dummyId="+dummyidArray[k]+"'>"+dummynames[k]+"</a>&nbsp;";
                }
                input.value=datas.id;
                span.innerHTML=sHtml;
            }
            else{
                input.value="";
                span.innerHTML="";
            }
            onNewContentCheck(input,eid,"");
        }
    }
    dlg.show();
}

function onSelectBgImg(input, span, eid) {
    imgfileid = document.getElementById("_eBackground_" + eid).value;

    data = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/homepage/element/setting/img.jsp?para=" + eid + "_" + imgfileid);
    if (data) {
        //alert(id(0));
        //alert(id(1));
        if (data.id != "") {
            input.value = data.id;
            span.innerHTML = data.name;
        } else {
            span.innerHTML = "";
            input.value = "";
        }
    }
}

function onShowNew(input, span, eid) {
    data = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/docs/news/NewsBrowser.jsp");
    if (data) {
        if (data.id != "") {
            span.innerHTML = "<a href='/docs/news/NewsDsp.jsp?id=" + data.id + "' target='_blank'>" + data.name + "</a>";
            input.value = data.id;

        } else {;
            span.innerHTML = "";
            input.value = "0";
        }
        onNewContentCheck(input, eid, "news");
    }
}

function onShowSearchTemplet(input, span, eid) {
    data = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/docs/DocSearchTempletBrowser.jsp");
    if (data) {
        if (data.id != "") {
            span.innerHTML = data.name;
            input.value = data.id;
            onNewContentCheck(input, eid, "");
        } else {;
            span.innerHTML = "";
            input.value = "";
        }
    }
}

function onShowMenus(input, span, eid) {
    //console.dir(arguments);
    var dlg=new window.top.Dialog();//定义Dialog对象
    dlg.Model=true;
    dlg.Width=550;//定义长度
    dlg.Height=560;
    dlg.URL="/systeminfo/BrowserMain.jsp?url=/page/element/Menu/MenusBrowser.jsp";
    //console.log("=======================");
    dlg.callbackfun=function(data){
        if (data) {
            if (data.id != "") {
                if (data.id == "hp") {
                    span.innerHTML = "<a href='/homepage/maint/HomepageLocation.jsp' target='_blank'>" + data.name + "</a>";
                } else if (data.id == "sys") {
                    span.innerHTML = "<a href='/systeminfo/menuconfig/MenuMaintFrame.jsp?type=" + data.id + "' target='_blank'>" + data.name + "</a>";
                } else {
                    span.innerHTML = "<a href='/page/maint/menu/MenuEdit.jsp?id=" + data.id + "' target='_blank'>" + data.name + "</a>";
                }
                input.value = data.id;
            } else {
                span.innerHTML = "";
                input.value = "0";
            }
        }
    }
    dlg.show();

}


function onClickMenuType(obj,eid){
    var menuType = document.getElementById("menuTypeId_"+eid);
    var spanMenuType = document.getElementById("spanMenuTypeId_"+eid);
    var tempMenuType = document.getElementById("tempMenuTypeId_"+eid);
    var mTypes = document.getElementById("menuType_"+eid);
    menuType.value = "";
    spanMenuType.innerHTML = "";
    tempMenuType.value = obj.value;
}

function onShowMenuTypes(input, span, eid, menutype) {
    menutype = menutype.value;
    var dlg=new window.top.Dialog();//定义Dialog对象
    dlg.Model=true;
    dlg.Width=550;//定义长度
    dlg.Height=560;
    dlg.URL="/systeminfo/BrowserMain.jsp?url=/page/element/Menu/MenuTypesBrowser.jsp?type=" + menutype;
    dlg.callbackfun=function(data){
        menulink = "";
        if (menutype == "element") {
            menulink = "ElementStyleEdit.jsp";
        } else if (menutype == "menuh") {
            menulink = "MenuStyleEditH.jsp";
        } else {
            menulink = "MenuStyleEditV.jsp";
        }
        if (data) {
            if (data.id != "") {
                span.innerHTML = "<a href='/page/maint/style/" + menulink + "?styleid=" +data.id + "&type=" + menutype + "&from=list' target='_blank'>" + data.name + "</a>";
                input.value = data.id;
            } else {
                span.innerHTML = "";
                input.value = "0";
            }
        }
    }
    dlg.show();
}

function onShowMenuTypes2(input, span, eid, menutype) {
    menutype = menutype.value;
    var dlg=new window.top.Dialog();//定义Dialog对象
    dlg.Model=true;
    dlg.Width=550;//定义长度
    dlg.Height=560;
    dlg.URL="/systeminfo/BrowserMain.jsp?url=/page/element/Menu/MenuTypesBrowser.jsp?type=" + menutype;
    dlg.callback=function(data){
        menulink = "";
        if (menutype == "element") {
            menulink = "ElementStyleEdit.jsp";
        } else if (menutype == "menuh") {
            menulink = "MenuStyleEditH.jsp";
        } else {
            menulink = "MenuStyleEditV.jsp";
        }
        if (data) {
            if (data.id != "") {
                span.innerHTML = "<a href='/page/maint/style/" + menulink + "?styleid=" +data.id + "&type=" + menutype + "&from=list' target='_blank'>" + data.name + "</a>";
                input.value = data.id;
            } else {
                span.innerHTML = "";
                input.value = "0";
            }
        }
    }
    dlg.show();
}
</script>


<script language="VBScript">
	Function URLEncoding(vstrIn)
    strReturn = ""
	dim i
    For i = 1 To Len(vstrIn)
        ThisChr = Mid(vStrIn,i,1)
        If Abs(Asc(ThisChr)) < &HFF Then
            strReturn = strReturn & ThisChr
        Else
            innerCode = Asc(ThisChr)
            If innerCode < 0 Then
                innerCode = innerCode + &H10000
            End If
            Hight8 = (innerCode  And &HFF00)\ &HFF
            Low8 = innerCode And &HFF
            strReturn = strReturn & "%" & Hex(Hight8) &  "%" & Hex(Low8)
        End If
    Next
    URLEncoding = strReturn
End Function
</script>

<script type="text/javascript">
    function onShowNewNews(input,span,eid,publishtype){
        var iTop = (window.screen.availHeight-30-550)/2+"px"; //获得窗口的垂直位置;
        var iLeft = (window.screen.availWidth-10-550)/2+"px"; //获得窗口的水平位置;
        var dlg=new window.top.Dialog();//定义Dialog对象
        dlg.Model=true;
        dlg.Width=550;//定义长度
        dlg.Height=550;
        dlg.URL = "/systeminfo/BrowserMain.jsp?url=/docs/news/NewsBrowser.jsp?publishtype="+publishtype;
        dlg.callback=function(datas){
            if (datas){
                if (datas.id){
                    $(span).html( "<a href='/docs/news/NewsDsp.jsp?id="+datas.id+"' target='_blank'>" +datas.name+"</a>");
                    $(input).val(datas.id);
                }else{
                    $(span).html( "");
                    $(input).val("");
                }
            }
        }
        dlg.show();
    }
    function setPictureWidth(eid,needButton)
    {
        try
        {
            var pictureTable = document.getElementById("pictureTable_"+eid);
            var picture = document.getElementById("picture_"+eid);
            pictureTable.style.display = "none";
            var pwidth = pictureTable.parentNode.offsetWidth;

            if(needButton=="1")
            {
                if(pwidth>64)
                {
                    pwidth = pwidth-64;
                }
            }
            else
            {
                pwidth = pwidth-6;
            }

            picture.style.width=pwidth;
            $("#picture_"+eid).width(pwidth);
            pictureTable.style.display = "";
        }
        catch(e)
        {
        }
    }
    function autoMarquee(eid)
    {
        try
        {
            var pictureothertd = document.getElementById("pictureothertd_"+eid);
            var picture  = document.getElementById("picture_"+eid);
            var picturetd = document.getElementById("picturetd_"+eid);

            if(pictureothertd.offsetWidth-picture.scrollLeft<=0)
            {
                picture.scrollLeft -= picturetd.offsetWidth;
            }
            else
            {
                picture.scrollLeft ++ ;
            }
        }
        catch(e)
        {

        }
    }

    function doScrollAuto(eid,needButton,speed){

        var myMar = window["mars_"+eid];
        var picture = document.getElementById("picture_"+eid);
        var picturetd = document.getElementById("picturetd_"+eid);
        var pictureothertd = document.getElementById("pictureothertd_"+eid);
        var pictureotherlinktd = document.getElementById("pictureotherlinktd_"+eid);
        var picturelinktd = document.getElementById("picturelinktd_"+eid);
        var picturenext = document.getElementById("picturenext_"+eid);
        var pictureback = document.getElementById("pictureback_"+eid);

        if(picture.offsetWidth < picturetd.offsetWidth){
            pictureothertd.innerHTML=picturetd.innerHTML;
            pictureotherlinktd.innerHTML=picturelinktd.innerHTML;
            clearInterval(myMar);
            myMar=setInterval(function(){autoMarquee(eid)},speed);
            window["mars_"+eid]=myMar;
        }

        picture.onmouseover = function(){clearInterval(myMar);};
        picture.onmouseout = function(){myMar = setInterval(function(){autoMarquee(eid)},speed);window["mars_"+eid]=myMar;};
        if("1"==needButton){
            picturenext.onmouseover = function(){clearInterval(myMar);};
            picturenext.onmouseout = function(){myMar = setInterval(function(){autoMarquee(eid)},speed);window["mars_"+eid]=myMar;};
            pictureback.onmouseover = function(){clearInterval(myMar);};
            pictureback.onmouseout = function(){myMar = setInterval(function(){autoMarquee(eid)},speed);window["mars_"+eid]=myMar;};
        }


    }

    function nextMarquee(eid)
    {
        //if(pictureothertd.offsetWidth-picture.scrollLeft<=0)
        //{
        //	picture.scrollLeft -= picturetd.offsetWidth;
        //}
        //else
        //{
        //	picture.scrollLeft ++ ;
        //}
        document.getElementById("picture_"+eid).scrollLeft+=75;
        //alert(document.getElementById("picture_"+eid).scrollLeft)
        //autoMarquee(eid)
        //	alert(document.getElementById("picture_"+eid).scrollLeft)
    }

    function backMarquee(eid)
    {
        document.getElementById("picture_"+eid).scrollLeft-=75;

    }

    function selectEngine(eid)
    {
        var keyword =document.getElementById("searchf_"+eid).keyword.value;
        var saction = "/page/element/SearchEngine/NewsSearchList.jsp?eid="+eid+"&keyword=";
        saction +=keyword;
        openFullWindowForXtable(saction)

    }
</script>

<script type="text/javascript">
    function changeMsg(eid,msg)
    {
        var frmLogin = document.getElementById("frmLogin_"+eid);
        var validatecode = frmLogin.validatecode;
        if(msg==0)
        {
            if(validatecode.value=='请输入以下验证码')
                validatecode.value='';
        }
        else if(msg==1)
        {
            if(validatecode.value=='')
                validatecode.value='请输入以下验证码';
        }
    }
    function checkall(eid,userparamname,userparampass,needvalidate,usbType)
    {
        var errMessage="";
        var frmLogin = document.getElementById("frmLogin_"+eid);
        var loginid = document.getElementById(userparamname);
        var userpassword = document.getElementById(userparampass);

        if (loginid&&loginid.value=="")
        {
            errMessage="请输入用户名！";
            alert(errMessage);
            loginid.focus();
            return false ;
        }
        if (userpassword&&userpassword.value=="")
        {
            errMessage="请输入密码！";
            alert(errMessage);
            userpassword.focus();
            return false ;
        }
        if(needvalidate=="1"){
            var validatecode = frmLogin.validatecode;
            if (validatecode&&(validatecode.value==""||validatecode.value=='请输入以下验证码'))
            {
                errMessage="请输入以下验证码";
                alert(errMessage);
                validatecode.focus();
                return false ;
            }
        }
        frmLogin.submit();
        loginid.value="";
        userpassword.value="";
        $("#message_"+eid).html("");

    }


    function getBytesLength(str) {
        // 在GBK编码里，除了ASCII字符，其它都占两个字符宽
        return str.replace(/[^\x00-\xff]/g, 'xx').length;
    }

    /**
     * 根据字符长来截取字符串
     */
    function subStringByBytes(val, maxBytesLen) {
        var len = maxBytesLen;
        var result = val.slice(0, len);
        while(getBytesLength(result) > maxBytesLen)
        {
            result = result.slice(0, --len);
        }
        return result;
    }

    function saveScratchpad(eid,userid)
    {
        var scratchpadareatext = document.getElementById("scratchpadarea_"+eid);
        scratchpadareatext.disabled = true;

        var padcontent = jQuery(scratchpadareatext).val();

        var len = getBytesLength(padcontent);
        //alert("len : "+len);
        if(len>4000)
        {
            var reply=confirm("便签内容超过4000字节,内容将被截取,是否保存?");
            if(reply)
            {
                padcontent = subStringByBytes(padcontent,4000);
                $.post("/page/element/scratchpad/ScratchpadOperation.jsp", { eid:eid, userid:userid, operation: "save",padcontent:padcontent },function(data){
                    data = data.replace(/(^\s*)|(\s*$)/g, "");
                    var scratchpadareatext = document.getElementById("scratchpadarea_"+eid);
                    jQuery(scratchpadareatext).val(data);
                    scratchpadareatext.disabled = false;
                });
            }
            else
            {
                scratchpadareatext.focus();
                scratchpadareatext.disabled = false;
            }
        }
        else
        {
            $.post("/page/element/scratchpad/ScratchpadOperation.jsp", { eid:eid,userid:userid, operation: "save",padcontent:padcontent },function(data){
                scratchpadareatext.disabled = false;
            });
        }
    }

    /**
     *天气元素滚动控制
     */
    function weatherAutoScroll(weatherId){

        var demo=document.getElementById(weatherId+"_0");

        var demo1=document.getElementById(weatherId+"_1");

        var demo2=document.getElementById(weatherId+"_2");

        var speed=30;
        var flag=0;  //用于记录 demo.scrollLeft 的位置，防止设置宽度过短时，出现滚动停止现象
        demo2.innerHTML=demo1.innerHTML;
        var Marquee=function(){
            if(demo2.offsetWidth-demo.scrollLeft<=0){
                demo.scrollLeft-=demo1.offsetWidth;
            }
            else if(flag==demo.scrollLeft&&demo.scrollLeft!=0)
                demo.scrollLeft-=demo1.offsetWidth;
            else{
                flag=demo.scrollLeft;
                demo.scrollLeft++;
            }
        };
        var MyMar=setInterval(Marquee,speed);
        demo.onmouseover=function() {clearInterval(MyMar)};
        demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)};

    }
    /**
     *天气元素手动滚动控制
     */
    function nextWeatherMarquee(eid)
    {
        //if(pictureothertd.offsetWidth-picture.scrollLeft<=0)
        //{
        //	picture.scrollLeft -= picturetd.offsetWidth;
        //}
        //else
        //{
        //	picture.scrollLeft ++ ;
        //}
        document.getElementById("weather_"+eid+"_0").scrollLeft+=75;
        //alert(document.getElementById("picture_"+eid).scrollLeft)
        //autoMarquee(eid)
        //	alert(document.getElementById("picture_"+eid).scrollLeft)
    }

    function backWeatherMarquee(eid)
    {
        document.getElementById("weather_"+eid+"_0").scrollLeft-=75;

    }

    //设置提示信息
    function setRemindInfo(eid, isremind,tdclass,nameclass){
        var tempremind="";
        if(isremind.indexOf("#")>-1){
            tempremind=isremind.substring(0,isremind.indexOf("#")-1);
        }else{
            tempremind=isremind;
        }
        //无new标签
        if(tempremind.indexOf("0")===-1){
            $("#item_"+eid).find("."+tdclass).find("img").hide();
        }

        var obj = [];
        var reminditems={};
        if("reqdetail" == tdclass){	//流程特别处理，
            reminditems=$("#item_"+eid).find("."+tdclass).find("a").next().find("img").parents("."+tdclass);//有主从账号的新到图标外层有span，还有人力资源图标
            if(reminditems.length == 0){//主从账号没有选到对象时，还需要非主从账号的情况（img有id，新到图标外层没有有span，没有人力资源图标）
                reminditems=$("#item_"+eid).find("."+tdclass).find("img[id]").parents("."+tdclass);
            }
        }else{
            reminditems=$("#item_"+eid).find("."+tdclass).find("img").parents("."+tdclass);
        }
        var reminditem,color,reqname;
        for(var i=0,len=reminditems.length;i<len;i++){
            reminditem=$(reminditems[i]);
            reqname=reminditem.find("."+nameclass);
            var str = "";
            //粗体
            if(tempremind.indexOf("1")!==-1){
                reqname.css("font-weight","bold");
                obj.push("font-weight:bold");
            }
            //斜体
            if(tempremind.indexOf("2")!==-1){
                reqname.css("font-style","italic");
                obj.push("font-style:italic");
            }
            //颜色
            if(tempremind.indexOf("3")!==-1){
                color=isremind.substr(isremind.indexOf("#"));
                //reqname.css("color",color +" !important");
                //reqname[0].style.setProperty('color', color, 'important');
                reqname.removeClass("font");
                reqname.attr('style', '');
                obj.push("color:"+color+"");
            }
            $(reqname).attr('style', obj.join(";"));


        }
    }
</script>


<script language="javascript" src="../js/datetime_wev8.js"></script>
<script language="javascript" src="../js/WdatePicker_wev8.js"></script><div id="_my97DP" style="position: absolute; top: -1970px; left: -1970px;"><iframe style="width: 186px; height: 198px;" src="../html/My97DatePicker.html" frameborder="0" border="0" scrolling="no"></iframe></div>
<script language="javascript" src="../js/selectDateTime_wev8.js"></script><iframe id="meizzDateLayer2" author="wayx" frameborder="0" style="position: absolute; width:200px; height:251px;z-index:9999;display:none;background:#fff;overflow:hidden;"></iframe>



<div style="height: 35px;width: auto;margin: 5px;border: 1px dashed rgb(18, 17, 17);display:none;" class="itemholder"></div>


<script src="../js/jquery-ui_wev8.js"></script>
<script>
    var hoveritem=undefined;
    var itemholder=$(".itemholder");
    $("#spanELib td a" ).draggable({
        helper: "clone",
        start: function( event, ui ) {
            var helper=ui.helper;
            helper.addClass("dragitemholder");

        }, drag:function( event, ui ){
            if(hoveritem!==undefined){
                var items=hoveritem.find(".item");
                var itemtemp;
                var offset=ui.offset;
                var itemoffset;
                var itemheight;
                var flag=true;
                for(var i=0,len=items.length;i<len;i++){
                    itemtemp=$(items[i]);
                    itemoffset=itemtemp.offset();
                    itemheight=itemtemp.height();
                    if(offset.top>itemoffset.top  && offset.top<itemoffset.top+itemheight){
                        if(itemtemp.prev()===itemholder)
                            return;
                        itemholder.insertBefore(itemtemp);
                        itemholder.show();
                        return;
                    }
                    if(i===(len-1))
                        flag=false;
                }
                if(!flag || items.length===0){
                    hoveritem.find(".group").append(itemholder);
                    itemholder.show();
                }
            }
        }
    });
    //将td注册drop事件
    $(".group").parent().droppable({
        over: function( event, ui ) {
            hoveritem=$(event.target);
        },
        drop: function( event, ui ) {
            var ebaseid=ui.helper.attr("ebaseid");
            var styleid="1442224702199";
            if(ebaseid==null || styleid == null){
                return;
            }
            ////=======协同区开始
            if("7" <0){
                var suffix = $(".item").length + 1;
                if(suffix > 6) {
                    var i = 0;
                    i = Math.floor(suffix / 6);
                    suffix = suffix - 6 * i;
                }
                styleid = styleid + suffix;
            }
            ////=======协同区结束

            var areaflag=hoveritem.find(".group").attr("areaflag");
            var newurl="/homepage/element/ElementPreview.jsp?ebaseid="+ebaseid+"&styleid="+styleid+"&hpid=7&subCompanyId=5&fromModule=Portal&layoutflag="+areaflag;
            GetContentForDragAdd("divInfo",newurl,true);
            //鼠标移除则隐藏占位框
        },out: function( event, ui ) {

            itemholder.hide();
        }
    });

    function doTabSave2(eid,ebaseid,tabId,para) {
        var tabDocument = tab_dialog.innerDoc;
        var tabWindow = tab_dialog.innerWin;
        var showCopy="1";
        var formAction ="";
        var tabTitle ="";
        var displayTitle="";
//	var orderNum = para.orderNum;
        formAction ="/page/element/OutData/tabOperation.jsp";
        tabTitle =$(tabDocument).find("#tabTitle_"+eid).attr("value");
        displayTitle = $("#encodeHTML").text(tabTitle).html();
        $.post(formAction,para,function(data){
            if($.trim(data) == 'no') {
                top.Dialog.alert('标题已存在！');
            } else {

                if(para.method=='add'){
                    //onSetting(eid,ebaseid);
                    var tabHtmlStr = '';
                    //		var posOr = getTabPos(eid,orderNum,"tabtable");
                    tabHtmlStr = "<TR><TD><input type='checkbox' name='checkrow_"+eid+"'/>&nbsp;<img moveimg src='/proj/img/move_wev8.png' title='拖动'/></TD><TD><span id = tab_"+eid+"_"+tabId+"  tabId='"+tabId+"' tabTitle='' showCopy='"+showCopy+"'></span></TD><TD width=100 lign='right'><a href='javascript:deleTab("+eid+","+tabId+",\""+ebaseid+"\")'>删除</a> &nbsp;&nbsp; <a href='javascript:editTab("+eid+","+tabId+",\""+ebaseid+"\")'>设置</a></TD></TR>";
                    tabHtmlStr += "<tr class='Spacing' style='height:1px!important;'><td colspan='3' class='paddingLeft0Table'><div class='intervalDivClass' style='display:block''></div></td></tr>";
                    $("#tabtable>tbody").append(tabHtmlStr);
                    /* orderNum='"+orderNum+"'
				if(posOr != -1){
					$("#tabtable>tbody").find('[id='+posOr+']').parent().parent().before(tabHtmlStr);
				}else {

				}*/
                    $("#tabDiv_"+eid+"_"+$("#setting_"+eid).attr("randomValue")).attr("tabCount",tabId);
                    $("#tab_"+eid+"_"+tabId).html(displayTitle);
                    $("#tab_"+eid+"_"+tabId).attr("tabTitle",tabTitle);
                }else{
                    $("#tab_"+eid+"_"+tabId).html(displayTitle);
                    $("#tab_"+eid+"_"+tabId).attr("tabTitle",tabTitle);
                    $("#tab_"+eid+"_"+tabId).attr("showCopy",showCopy);
                    /*		if(orderNum != $("#tab_"+eid+"_"+tabId).attr('orderNum')){
					$("#tab_"+eid+"_"+tabId).attr("orderNum",orderNum);
					var posOr = getTabPos(eid,orderNum,"tabtable","tab_"+eid+"_"+tabId);
					var tempHtml = "<TR>"+$("#tab_"+eid+"_"+tabId).parent().parent().html()+"</TR>";
					$("#tab_"+eid+"_"+tabId).parent().parent().remove();
					if(posOr != -1){
						$("#tabtable>tbody").find('[id='+posOr+']').parent().parent().before(tempHtml);
					}else {
						$("#tabtable>tbody").append(tempHtml);
					}
				}*/
                    //$("#tab_"+eid+"_"+tabId).attr("tabWhere",whereKeyStr);
                }
                tab_dialog.close();
            }
        });
    }

    function onNewRequest(obj,wfid,agent,beagenter,selfwf){
        if(!selfwf){
            $(obj).parent().find(".addwfDrop").find(".itemdrop:first").trigger("click");
            return;
        }
        jQuery.post('/workflow/request/AddWorkflowUseCount.jsp',{wfid:wfid});

        var redirectUrl = "/workflow/request/AddRequest.jsp?workflowid="+wfid+"&isagent="+agent+"&beagenter="+beagenter+"&f_weaver_belongto_userid=";
        var hiddenNames = "prjid,docid,crmid,hrmid,topage".split(",");
        for (var i = 0; i < hiddenNames.length; i++) {
            var hiddenName = hiddenNames[i];
            var hiddenVal = jQuery("input:hidden[name='"+hiddenName+"']").val();
            if (!!hiddenVal) {
                redirectUrl += "&" + hiddenName + "=" + hiddenVal;
            }
        }
        var width = screen.availWidth-10 ;
        var height = screen.availHeight-50 ;
        var szFeatures = "top=0," ;
        szFeatures +="left=0," ;
        szFeatures +="width="+width+"," ;
        szFeatures +="height="+height+"," ;
        szFeatures +="directories=no," ;
        szFeatures +="status=yes,toolbar=no,location=no," ;
        szFeatures +="menubar=no," ;
        szFeatures +="scrollbars=yes," ;
        szFeatures +="resizable=yes" ; //channelmode
        window.open(redirectUrl,"",szFeatures) ;

    }

    function onNewRequest2(wfid,agent,belongtouserid){
        jQuery.post('/workflow/request/AddWorkflowUseCount.jsp',{wfid:wfid});

        var redirectUrl = "/workflow/request/AddRequest.jsp?workflowid="+wfid+"&isagent="+agent+"&f_weaver_belongto_userid="+belongtouserid;
        var hiddenNames = "prjid,docid,crmid,hrmid,topage".split(",");
        for (var i = 0; i < hiddenNames.length; i++) {
            var hiddenName = hiddenNames[i];
            var hiddenVal = jQuery("input:hidden[name='"+hiddenName+"']").val();
            if (!!hiddenVal) {
                redirectUrl += "&" + hiddenName + "=" + hiddenVal;
            }
        }
        var width = screen.availWidth-10 ;
        var height = screen.availHeight-50 ;
        var szFeatures = "top=0," ;
        szFeatures +="left=0," ;
        szFeatures +="width="+width+"," ;
        szFeatures +="height="+height+"," ;
        szFeatures +="directories=no," ;
        szFeatures +="status=yes,toolbar=no,location=no," ;
        szFeatures +="menubar=no," ;
        szFeatures +="scrollbars=yes," ;
        szFeatures +="resizable=yes" ; //channelmode
        window.open(redirectUrl,"",szFeatures) ;

    }

    function agentWf(obj){
        $(".addwfDrop").hide();
        var etop =$(obj).offset().top;
        var eleft =$(obj).offset().left;
        var width = $(obj).parent().find(".addwfDrop").width();
        $(obj).parent().find(".addwfDrop").css("top",etop+10).css("left",eleft-width).show();
    }

    var  hpid = "7";
    var data = [{id:"item_58",msg:"<span>集中聚合员工个人办公所需信息与提醒。<br>涵盖员工待办工作、待审阅文件、重点关注事项等<br>所有未处理的工作信息，便于员工在开启个人门户<br>之初即可得知当前工作进展，快速进入工作状态。</span>",url:"",prevClose:"1",nextClose:"",isClick:""}
        ,{id:"item_57",msg:"<span>提供当日工作计划、下属工作微博、当日会议、预定日程等<br>集中的个人工作提醒机制，避免员工遗漏部分工作和计划行程。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
        ,{id:"item_220",msg:"<span>统一的信息发布平台。企业战略思想统一、<br>文化宣传、信息发布的重要渠道。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
        ,{id:"item_59",msg:"<span>企业内部通讯录，便于快速找到同事的联系方式。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
        ,{id:"item_266",msg:"<span>自动聚合互联网上与自定义关键词相关的信息内容，<br>及时获知外部动向。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
        ,{id:"item_335",msg:"<span>打破层级让整个组织更加透明，<br>让每一天成长的同仁能够得到<br>领导的认知。</span>",url:"",prevClose:"",nextClose:"",isClick:"",clickIframe:"divFloatBg",clickStep:"portal9"}
    ];


    if(hpid == "9"){
        data = [{id:"item_286",msg:"<span>打造企业发展的统一口号，<br>塑造企业的文化氛围。</span>",url:"",prevClose:"1",nextClose:"",isClick:""}
            ,{id:"item_283",msg:"<span>企业发展的体系化文档，<br>便于员工快速了解企业。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
            ,{id:"item_270",msg:"<span>统一的信息发布平台。企业战略思想统一、<br>文化宣传、信息发布的重要渠道。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
            ,{id:"item_278",msg:"<span>新员工入职信息的自动推送，<br>让员工快速融入到企业中。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
            ,{id:"item_277",msg:"<span>丰富的员工生活，企业文化传播。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
            ,{id:"item_284",msg:"<span>公司期刊定期发布，<br>企业大事记随时订阅。</span>",url:"",prevClose:"",nextClose:"",isClick:"",clickIframe:"divFloatBg",clickStep:"portal15"}
        ];
    }

    if(hpid == "15"){
        data = [{id:"item_164",msg:"<span>签约新闻作为营销门户最重要的发布内容<br>每天更新最新销售动态。</span>",url:"",prevClose:"1",nextClose:"",isClick:""}
            ,{id:"item_162",msg:"<span>通过销售类知识地图能让一名新销售快速成长，<br>便于了解销售过程及相关制度和模板。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
            ,{id:"item_178",msg:"<span>提供更加丰富的知识地图全面了解与自身岗位相关的信息，<br>从而运用到销售过程中。</span>",url:"",prevClose:"",nextClose:"",isClick:""}
            ,{id:"item_180",msg:"<span>通过报表随时掌握当前总体销售业绩情况</span>",url:"",prevClose:"",nextClose:"",isClick:"",clickIframe:"divFloatBg",clickStep:"portal10"}
        ];
    }

    if(hpid == "10"){
        data = [{id:"item_88",msg:"<span>帮助企业全面分析当前的人员组成结构</span>",url:"",prevClose:"1",nextClose:"",isClick:""}
            ,{id:"item_89",msg:"<span>帮助企业全面分析当前财务状况</span>",url:"",prevClose:"",nextClose:"",isClick:""}
            ,{id:"item_87",msg:"<span>帮助企业全面分析当前内部的运营状况</span>",url:"",prevClose:"",nextClose:"",isClick:""}
            ,{id:"item_78",msg:"<span>帮助企业全面分析当前资产运行情况</span>",url:"",prevClose:"",nextClose:"",isClick:"",clickIframe:"menuItem1",clickStep:"num_12"}
        ];
    }

</script>

<link rel="stylesheet" type="text/css" href="../css/tip.css">
<script type="text/javascript" src="../css/tip.js"></script>


</body></html>